![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.handler.codec.http.HttpObjectEncoder.class Maven / Gradle / Ivy
The newest version!
???? 2S ? ?
K ? ?C? ? ? ? ? ?
? ?
?
? ? ?
?
?
? ? ? ? ?
?
?
? ?
? ?
?
? ?>L??
?
??L?? ?
?
? ? ? ? ?
?
? $ ?
?
? ? ? ?
? ?
. ?
? ? ? ? ? ? ? 3 ? ? 3 ?
? ?
? ?
? ? ? ?
? ?
? +
? 0
? % %
?
?
CRLF_SHORT I
ConstantValue
ZERO_CRLF_MEDIUM ZERO_CRLF_CRLF [B CRLF_BUF Lio/netty/buffer/ByteBuf; ZERO_CRLF_CRLF_BUF HEADERS_WEIGHT_NEW F HEADERS_WEIGHT_HISTORICAL TRAILERS_WEIGHT_NEW TRAILERS_WEIGHT_HISTORICAL ST_INIT ST_CONTENT_NON_CHUNK ST_CONTENT_CHUNK ST_CONTENT_ALWAYS_EMPTY state headersEncodedSizeAccumulator trailersEncodedSizeAccumulator ()V Code LineNumberTable LocalVariableTable this /Lio/netty/handler/codec/http/HttpObjectEncoder; LocalVariableTypeTable 4Lio/netty/handler/codec/http/HttpObjectEncoder; encode M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V m )Lio/netty/handler/codec/http/HttpMessage; potentialEmptyBuf
contentLength J ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/Object; out Ljava/util/List; buf TH; $Ljava/util/List;
StackMapTable ? ?
?
Exceptions Signature a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V
encodeHeaders E(Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/buffer/ByteBuf;)V header Entry InnerClasses Ljava/util/Map$Entry; headers )Lio/netty/handler/codec/http/HttpHeaders; iter Ljava/util/Iterator; GLjava/util/Map$Entry; ]Ljava/util/Iterator;>; encodeChunkedContent N(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JLjava/util/List;)V lengthHex Ljava/lang/String; b(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JLjava/util/List;)V sanitizeHeadersBeforeEncode -(Lio/netty/handler/codec/http/HttpMessage;Z)V
isAlwaysEmpty Z (TH;Z)V isContentAlwaysEmpty ,(Lio/netty/handler/codec/http/HttpMessage;)Z (TH;)Z acceptOutboundMessage (Ljava/lang/Object;)Z encodeAndRetain &(Ljava/lang/Object;)Ljava/lang/Object; (Ljava/lang/Object;)J padSizeForAccumulation (I)I
readableBytes encodeAscii .(Ljava/lang/String;Lio/netty/buffer/ByteBuf;)V s
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; encodeInitialLine E(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpMessage;)V (Lio/netty/buffer/ByteBuf;TH;)V rLio/netty/handler/codec/MessageToMessageEncoder;
SourceFile HttpObjectEncoder.java -io/netty/handler/codec/http/HttpObjectEncoder )io/netty/handler/codec/http/HttpConstants f g c M d W e W 'io/netty/handler/codec/http/HttpMessage java/lang/IllegalStateException java/lang/StringBuilder unexpected message type: , state: f
? ? ? ?!" ? ? ? ?# ? ?$%& ?' ? ? io/netty/buffer/ByteBuf()*+, ? 'io/netty/handler/codec/http/HttpContent io/netty/channel/FileRegion t ?-'.+/0 ? ? +io/netty/handler/codec/http/LastHttpContent12 T ? ? java/lang/Error345)678 java/util/Map$Entry97 java/lang/CharSequence:7;<=>?@AB'CDEFG S TH+I#J) U TK& &io/netty/handler/codec/http/HttpObject*LMN Q RO P Q0/R .io/netty/handler/codec/MessageToMessageEncoder &io/netty/channel/ChannelHandlerContext java/lang/Object java/util/List java/lang/Exception java/util/Iterator 'io/netty/handler/codec/http/HttpHeaders append -(Ljava/lang/String;)Ljava/lang/StringBuilder; !io/netty/util/internal/StringUtil simpleClassName &(Ljava/lang/Object;)Ljava/lang/String; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V alloc $()Lio/netty/buffer/ByteBufAllocator; io/netty/buffer/ByteBufAllocator buffer (I)Lio/netty/buffer/ByteBuf; $io/netty/handler/codec/http/HttpUtil isTransferEncodingChunked +()Lio/netty/handler/codec/http/HttpHeaders; io/netty/buffer/ByteBufUtil writeShortBE 5(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf; ()I
isReadable ()Z retain ()Lio/netty/buffer/ByteBuf; add
writableBytes content
writeBytes 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; io/netty/buffer/Unpooled EMPTY_BUFFER iteratorCharSequence ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object;
java/util/Map getKey getValue .io/netty/handler/codec/http/HttpHeadersEncoder
encoderHeader L(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Lio/netty/buffer/ByteBuf;)V java/lang/Long toHexString (J)Ljava/lang/String; java/lang/String length io/netty/util/CharsetUtil US_ASCII Ljava/nio/charset/Charset; writeCharSequence 5(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I duplicate trailingHeaders isEmpty
writeMediumBE ()Lio/netty/channel/FileRegion; count ()J directBuffer writeByte unreleasableBuffer ([B)Lio/netty/buffer/ByteBuf;! K L M N O P M N A Q R S T U T V W N X W N Y W N Z W N [ M N \ ] M N ^ _ M N ` a M N b c M d W e W
f g h ^ *? *? *? *? ? i 1 B I O j k l m k n o p h ? ?:,? ? ?*? ? -? Y?
Y? ?
,? ?
?
*? ? ? ? ?,? :+? *? ?? :*? **? ? ? ? ? ? ? **? ? ? ? *? ?
? W*? ? ?j*? jb? ,? ? ,? :? !? -? "? # W?,? $? ,? ?
,? %? ?*? ? ? = ? ?? Y?
Y? ?
,? ?
? ? ?,? &7 ?? ^? 1? '??? %,? $? ,? $? ( ? )W-? # W? ? -? # W-,? *? # W,? +? M*? ? E? -? # W? 4-? ,? # W? '? -? # W*+,,? &-? -? ? .Y? /?,? +? *? ? ? -? # W? i ? - S T
U V ; [ A ] S _ [ ` k a y c ? e ? f ? h ? q ? r ? s ? t ? u ? y ? z |2 ~8 ? ?W ?f ?r ?w ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? j R A y q r ? s T 8 b t u ? k l ? v w ? x y ? z { ? | T m A y q } ? k n ? z ~ ? ? ; ?? - ? ? ? ? ? ? ?K ?? ? ? ? ? ? ? ?? ? ? ? ? ? ? ? ?? ? ? ? ? ? ? ? ?? 0!"? ?
?
? ? ? ? ? ? h ? 5+? 0N-? 1 ? )-? 2 ? 3:? 4 ? 5? 6 ? 5,? 7??Ա i ? ? ? ? 1 ? 4 ? j 4 ? ? 5 k l 5 ? ? 5 | T 0 ? ? m ? ? 5 k n 0 ? ? ? ?. ? ? h ? ?! ?? U!? 8:+? ? 9`? :? :? ;W
? W? # W,? *? # W?