io.netty.handler.codec.http.HttpObjectEncoder.class Maven / Gradle / Ivy
???? 2. -io/netty/handler/codec/http/HttpObjectEncoder rLio/netty/handler/codec/MessageToMessageEncoder; .io/netty/handler/codec/MessageToMessageEncoder HttpObjectEncoder.java java/util/Map$Entry
java/util/Map Entry CRLF [B ZERO_CRLF ZERO_CRLF_CRLF CRLF_BUF Lio/netty/buffer/ByteBuf; ZERO_CRLF_CRLF_BUF ST_INIT I ST_CONTENT_NON_CHUNK ST_CONTENT_CHUNK ST_CONTENT_ALWAYS_EMPTY state ()V
! this 4Lio/netty/handler/codec/http/HttpObjectEncoder; /Lio/netty/handler/codec/http/HttpObjectEncoder; encode M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V java/lang/Exception ( 'io/netty/handler/codec/http/HttpMessage * java/lang/IllegalStateException , java/lang/StringBuilder .
/ unexpected message type: 1 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 3 4
/ 5 !io/netty/util/internal/StringUtil 7 simpleClassName &(Ljava/lang/Object;)Ljava/lang/String; 9 :
8 ; toString ()Ljava/lang/String; = >
/ ? (Ljava/lang/String;)V A
- B io/netty/buffer/ByteBuf D &io/netty/channel/ChannelHandlerContext F alloc $()Lio/netty/buffer/ByteBufAllocator; H I G J io/netty/buffer/ByteBufAllocator L buffer ()Lio/netty/buffer/ByteBuf; N O M P encodeInitialLine E(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpMessage;)V R S
T headers +()Lio/netty/handler/codec/http/HttpHeaders; V W + X
encodeHeaders E(Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/buffer/ByteBuf;)V Z [
\
^
writeBytes ([B)Lio/netty/buffer/ByteBuf; ` a
E b isContentAlwaysEmpty ,(Lio/netty/handler/codec/http/HttpMessage;)Z d e
f java/lang/Object h java/util/List j $io/netty/handler/codec/http/HttpUtil l isTransferEncodingChunked n e
m o
isReadable ()Z q r
E s io/netty/buffer/Unpooled u EMPTY_BUFFER w v x add (Ljava/lang/Object;)Z z { k | 'io/netty/handler/codec/http/HttpContent ~ io/netty/channel/FileRegion ?
contentLength (Ljava/lang/Object;)J ? ?
?
writableBytes ()I ? ?
E ? content ? O ? 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; ` ?
E ? encodeAndRetain &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? +io/netty/handler/codec/http/LastHttpContent ? encodeChunkedContent N(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JLjava/util/List;)V ? ?
? java/lang/Error ?
? m TH; )Lio/netty/handler/codec/http/HttpMessage; J ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/Object; out $Ljava/util/List; Ljava/util/List; buf 'io/netty/handler/codec/http/HttpHeaders ? iteratorCharSequence ()Ljava/util/Iterator; ? ?
? ? java/util/Iterator ? hasNext ? r ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? java/lang/CharSequence ? getValue ? ? ? .io/netty/handler/codec/http/HttpHeadersEncoder ?
encoderHeader L(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Lio/netty/buffer/ByteBuf;)V ? ?
? ? header GLjava/util/Map$Entry; Ljava/util/Map$Entry; )Lio/netty/handler/codec/http/HttpHeaders; iter ]Ljava/util/Iterator;>; Ljava/util/Iterator; java/lang/Long ? toHexString (J)Ljava/lang/String; ? ?
? ? java/lang/String ? length ? ?
? ? (I)Lio/netty/buffer/ByteBuf; N ? M ? io/netty/util/CharsetUtil ? US_ASCII Ljava/nio/charset/Charset; ? ? ? ? writeCharSequence 5(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I ? ?
E ? ? duplicate ? O
E ? trailingHeaders ? W ? ? isEmpty ? r
? ? ?
? release ? r
E ? (io/netty/util/internal/PlatformDependent ? throwException (Ljava/lang/Throwable;)V ? ?
? ? lengthHex Ljava/lang/String; ex Ljava/lang/Exception; acceptOutboundMessage &io/netty/handler/codec/http/HttpObject retain O
E ()Lio/netty/channel/FileRegion; ?
readableBytes
?
E count ()J
? encodeAscii .(Ljava/lang/String;Lio/netty/buffer/ByteBuf;)V Ljava/lang/Deprecated; s
directBuffer ?
v unreleasableBuffer ?
v
ConstantValue Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable
Exceptions Signature a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V b(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JLjava/util/List;)V (TH;)Z
Deprecated RuntimeVisibleAnnotations (Lio/netty/buffer/ByteBuf;TH;)V
SourceFile InnerClasses!
J
*? *? "?
# % !
# $ "
1 > &