io.netty.handler.codec.http.HttpContentDecoder.class Maven / Gradle / Ivy
???? 26 .io/netty/handler/codec/http/HttpContentDecoder ZLio/netty/handler/codec/MessageToMessageDecoder; .io/netty/handler/codec/MessageToMessageDecoder HttpContentDecoder.java IDENTITY Ljava/lang/String; ctx (Lio/netty/channel/ChannelHandlerContext; decoder +Lio/netty/channel/embedded/EmbeddedChannel; continueResponse Z ()V
this 0Lio/netty/handler/codec/http/HttpContentDecoder; decode c(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V java/lang/Exception (io/netty/handler/codec/http/HttpResponse status 2()Lio/netty/handler/codec/http/HttpResponseStatus; .io/netty/handler/codec/http/HttpResponseStatus code ()I ! "
# +io/netty/handler/codec/http/LastHttpContent %
' io/netty/util/ReferenceCountUtil ) retain &(Ljava/lang/Object;)Ljava/lang/Object; + ,
* - java/util/List / add (Ljava/lang/Object;)Z 1 2 0 3 'io/netty/handler/codec/http/HttpMessage 5 cleanup 7
8 headers +()Lio/netty/handler/codec/http/HttpHeaders; : ; 6 < +io/netty/handler/codec/http/HttpHeaderNames > CONTENT_ENCODING Lio/netty/util/AsciiString; @ A ? B 'io/netty/handler/codec/http/HttpHeaders D get ,(Ljava/lang/CharSequence;)Ljava/lang/String; F G
E H java/lang/String J trim ()Ljava/lang/String; L M
K N P newContentDecoder ?(Ljava/lang/String;)Lio/netty/channel/embedded/EmbeddedChannel; R S
T V 'io/netty/handler/codec/http/HttpContent X +()Lio/netty/handler/codec/http/HttpContent; + Z Y [ CONTENT_LENGTH ] A ? ^ contains (Ljava/lang/CharSequence;)Z ` a
E b remove C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; d e
E f TRANSFER_ENCODING h A ? i ,io/netty/handler/codec/http/HttpHeaderValues k CHUNKED m A l n set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; p q
E r getTargetContentEncoding &(Ljava/lang/String;)Ljava/lang/String; t u
v A l x io/netty/util/AsciiString z
contentEquals | a
{ } java/lang/CharSequence 'io/netty/handler/codec/http/HttpRequest ? .io/netty/handler/codec/http/DefaultHttpRequest ? protocolVersion +()Lio/netty/handler/codec/http/HttpVersion; ? ? ? ? method *()Lio/netty/handler/codec/http/HttpMethod; ? ? ? ? uri ? M ? ? f(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpMethod;Ljava/lang/String;)V ?
? ? /io/netty/handler/codec/http/DefaultHttpResponse ? ? \(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;)V ?
? ? %io/netty/handler/codec/CodecException ? java/lang/StringBuilder ?
? Object of class ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? java/lang/Class ? getName ? M
? ? % is not a HttpRequest or HttpResponse ? toString ? M
? ? (Ljava/lang/String;)V ?
? ? T(Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/HttpHeaders; p ?
E ?
decoderResult (()Lio/netty/handler/codec/DecoderResult; ? ? 6 ? setDecoderResult )(Lio/netty/handler/codec/DecoderResult;)V ? ? 6 ? &io/netty/channel/ChannelHandlerContext ? &io/netty/handler/codec/http/HttpObject ?
decodeContent <(Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)V ? ?
? r )Lio/netty/handler/codec/http/HttpRequest; copy )Lio/netty/handler/codec/http/HttpMessage; *Lio/netty/handler/codec/http/HttpResponse; message )Lio/netty/handler/codec/http/HttpHeaders; contentEncoding targetContentEncoding Ljava/lang/CharSequence; c )Lio/netty/handler/codec/http/HttpContent; msg (Lio/netty/handler/codec/http/HttpObject; out $Ljava/util/List; Ljava/util/List; content ()Lio/netty/buffer/ByteBuf; ? ? Y ? ,(Lio/netty/buffer/ByteBuf;Ljava/util/List;)V ?
? finishDecode (Ljava/util/List;)V ? ?
? trailingHeaders ? ; &