classes.io.netty.handler.proxy.HttpProxyHandler.class Maven / Gradle / Ivy
???? 2
@ ~
? ? ? ? ? ? ? ? ? ? G
? H ?
?
?
?
? ? ?
? ?
? ? ? ? ? ?
? ?
?
? ? ? ? ? ? ? ? ? ? ?
?
?
? ? ?
# ?
# ?
# ?
? ?
# ?
? ? ? ? ? ? ? ?
* ? ? ? ? ?
? ? ? ? ? ? ? ? ?
? ?
5 ? 3 ? ? ?
? ? ?
? ? ? PROTOCOL Ljava/lang/String;
ConstantValue
AUTH_BASIC codec -Lio/netty/handler/codec/http/HttpClientCodec; username password
authorization Ljava/lang/CharSequence; status 0Lio/netty/handler/codec/http/HttpResponseStatus; (Ljava/net/SocketAddress;)V Code LineNumberTable LocalVariableTable this )Lio/netty/handler/proxy/HttpProxyHandler; proxyAddress Ljava/net/SocketAddress; ?(Ljava/net/SocketAddress;Ljava/lang/String;Ljava/lang/String;)V authz Lio/netty/buffer/ByteBuf; authzBase64
StackMapTable ? ? ? protocol ()Ljava/lang/String;
authScheme addCodec +(Lio/netty/channel/ChannelHandlerContext;)V ctx (Lio/netty/channel/ChannelHandlerContext; p "Lio/netty/channel/ChannelPipeline; name
Exceptions ?
removeEncoder
removeDecoder newInitialMessage <(Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object; rhost raddr Ljava/net/InetSocketAddress; host req -Lio/netty/handler/codec/http/FullHttpRequest; ? ? handleResponse =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Z response Ljava/lang/Object; finished Z
SourceFile HttpProxyHandler.java M N +io/netty/handler/codec/http/HttpClientCodec M ? E F G B H B I J java/lang/NullPointerException M ? java/lang/StringBuilder ? ? ? ? ? _ ? ? ? ? ? ? ? ? ? io/netty/util/AsciiString Basic ? ? ? ? ? M ? ? ? http basic none ? ? ? g _ ? ? ? ? ? ? ? ? ? java/net/InetSocketAddress ? ? ? _ ? ? ? ? _ ? ? ? ? 2io/netty/handler/codec/http/DefaultFullHttpRequest ? ? ? ? ? ? ? X M ? ? ? ? ? ? (io/netty/handler/codec/http/HttpResponse K L ,io/netty/handler/proxy/ProxyConnectException too many responses M ? K +io/netty/handler/codec/http/LastHttpContent missing response ? status: ?
'io/netty/handler/proxy/HttpProxyHandler #io/netty/handler/proxy/ProxyHandler java/net/SocketAddress java/lang/String java/lang/Exception +io/netty/handler/codec/http/FullHttpRequest ()V (Ljava/lang/String;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; toString io/netty/util/CharsetUtil UTF_8 Ljava/nio/charset/Charset; io/netty/buffer/Unpooled copiedBuffer M(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; $io/netty/handler/codec/base64/Base64 encode 5(Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf; US_ASCII io/netty/buffer/ByteBuf .(Ljava/nio/charset/Charset;)Ljava/lang/String; (Ljava/lang/CharSequence;)V release ()Z &io/netty/channel/ChannelHandlerContext pipeline $()Lio/netty/channel/ChannelPipeline; io/netty/channel/ChannelPipeline addBefore i(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline; removeOutboundHandler removeInboundHandler destinationAddress ()Ljava/net/SocketAddress; isUnresolved
getHostString
getAddress ()Ljava/net/InetAddress; java/net/InetAddress getHostAddress getPort ()I (I)Ljava/lang/StringBuilder; 'io/netty/handler/codec/http/HttpVersion HTTP_1_1 )Lio/netty/handler/codec/http/HttpVersion; &io/netty/handler/codec/http/HttpMethod CONNECT (Lio/netty/handler/codec/http/HttpMethod; EMPTY_BUFFER ?(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpMethod;Ljava/lang/String;Lio/netty/buffer/ByteBuf;Z)V headers +()Lio/netty/handler/codec/http/HttpHeaders; +io/netty/handler/codec/http/HttpHeaderNames HOST Lio/netty/util/AsciiString; 'io/netty/handler/codec/http/HttpHeaders set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; PROXY_AUTHORIZATION exceptionMessage &(Ljava/lang/String;)Ljava/lang/String; 2()Lio/netty/handler/codec/http/HttpResponseStatus; .io/netty/handler/codec/http/HttpResponseStatus code -(Ljava/lang/Object;)Ljava/lang/StringBuilder; 1 ? @ A B C D B C E F G B H B I J K L M N O h *+? *? Y? ? *? *? *? ? P 3 , 4 5 6 7 Q R S T U M V O ; ?*+? *? Y? ? ,?
? Y ?
?-?
? Y?
?*,? *-? ? Y?
,? :? -? ? ? ? :? :*? Y? Y?
? ? ? ? ? ? ? ? W? W? P : : , ; <