![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.handler.codec.http.HttpContentEncoder.class Maven / Gradle / Ivy
The newest version!
???? 2?
s ? ?
? n ? x ? n ? ? ? j ? ? ?
? ? ? ? ? ? ? ? ?
j
n n
? t
x
n n n
! ?
n
'
n x -!
f" #
n$
v% ? ?&
v'
?()
7*
?+
n,
n- ?.
?/ ?0 12 x3
n4
56 !
f7
58 9:;
G ?<
G=
`>
?@A
?B
GC
G#
nD
nE F
?G HI JK
VL
nM
sN
sO
PQ
nRSTUV
fW
PX
nY
PZ
P[\
f]^
h_`
nab
ncd
?efg hij InnerClassesk Resultl State ZERO_LENGTH_HEAD Ljava/lang/CharSequence; ZERO_LENGTH_CONNECT
CONTINUE_CODE I acceptEncodingQueue Ljava/util/Queue; Signature +Ljava/util/Queue; encoder +Lio/netty/channel/embedded/EmbeddedChannel; state 6Lio/netty/handler/codec/http/HttpContentEncoder$State; $assertionsDisabled Z ()V Code LineNumberTable LocalVariableTable this 0Lio/netty/handler/codec/http/HttpContentEncoder; acceptOutboundMessage (Ljava/lang/Object;)Z msg Ljava/lang/Object;
StackMapTable
Exceptionsm decode d(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;Ljava/util/List;)V acceptEncoding ctx (Lio/netty/channel/ChannelHandlerContext; )Lio/netty/handler/codec/http/HttpRequest; out Ljava/util/List; acceptEncodingHeaders method (Lio/netty/handler/codec/http/HttpMethod; LocalVariableTypeTable $Ljava/util/List; $Ljava/util/List;ndo` ?p x(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;Ljava/util/List;)V encode c(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V newRes *Lio/netty/handler/codec/http/HttpResponse; res code result 7Lio/netty/handler/codec/http/HttpContentEncoder$Result; (Lio/netty/handler/codec/http/HttpObject; isFull ?kb w(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V encodeFullResponse f(Lio/netty/handler/codec/http/HttpResponse;Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)V item i messageSize content )Lio/netty/handler/codec/http/HttpContent; existingMessages z(Lio/netty/handler/codec/http/HttpResponse;Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)V
isPassthru E(Lio/netty/handler/codec/http/HttpVersion;ILjava/lang/CharSequence;)Z version )Lio/netty/handler/codec/http/HttpVersion;
httpMethod
ensureHeaders +(Lio/netty/handler/codec/http/HttpObject;)V
ensureContent
encodeContent <(Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)Z last -Lio/netty/handler/codec/http/LastHttpContent; headers )Lio/netty/handler/codec/http/HttpHeaders; c Lio/netty/buffer/ByteBuf;\q P(Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)Z beginEncode u(Lio/netty/handler/codec/http/HttpResponse;Ljava/lang/String;)Lio/netty/handler/codec/http/HttpContentEncoder$Result; handlerRemoved +(Lio/netty/channel/ChannelHandlerContext;)V channelInactive cleanup
cleanupSafely cause Ljava/lang/Throwable;S ,(Lio/netty/buffer/ByteBuf;Ljava/util/List;)V in @(Lio/netty/buffer/ByteBuf;Ljava/util/List;)V finishEncode (Ljava/util/List;)V '(Ljava/util/List;)V fetchEncoderOutput buf M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V ?Lio/netty/handler/codec/MessageToMessageCodec;
SourceFile HttpContentEncoder.java ? ? java/util/ArrayDeque ?r ? ? ? 'io/netty/handler/codec/http/HttpContent (io/netty/handler/codec/http/HttpResponse ?stuvqwxnyz{|}~ java/lang/CharSequence ,??? ??pf ?? ? z {g ? | {?? ???? +io/netty/handler/codec/http/LastHttpContent???z ? ? ? ? ? ? java/lang/AssertionError??? ?z } ~?? java/lang/IllegalStateException (cannot send more responses than requests ???? ? ?? ? io/netty/buffer/ByteBufHolder ?????? ? ????v???? /io/netty/handler/codec/http/DefaultHttpResponse ???? ? ? ? ??v???v??v? ? ? ?????z???? ? java/lang/StringBuilder unexpected message type: ??????? (expected: ???? ? ? ? ??s??? ? 3io/netty/handler/codec/http/ComposedLastHttpContent??? ?? ? ? ? ? ? ???? ? ? java/lang/Throwableo?? java/lang/Object???? ? ????? io/netty/buffer/ByteBuf?? .io/netty/handler/codec/http/DefaultHttpContent ?? 'io/netty/handler/codec/http/HttpRequest ? ? &io/netty/handler/codec/http/HttpObject ? ? .io/netty/handler/codec/http/HttpContentEncoder?? HEAD CONNECT?? ,io/netty/handler/codec/MessageToMessageCodec 0io/netty/handler/codec/http/HttpContentEncoder$1 5io/netty/handler/codec/http/HttpContentEncoder$Result 4io/netty/handler/codec/http/HttpContentEncoder$State java/lang/Exception java/util/List &io/netty/channel/ChannelHandlerContext &io/netty/handler/codec/http/HttpMethod 'io/netty/handler/codec/http/HttpHeaders
AWAIT_HEADERS +()Lio/netty/handler/codec/http/HttpHeaders; +io/netty/handler/codec/http/HttpHeaderNames ACCEPT_ENCODING Lio/netty/util/AsciiString; getAll *(Ljava/lang/CharSequence;)Ljava/util/List; size ()I .io/netty/handler/codec/http/HttpContentDecoder IDENTITY Ljava/lang/String; get (I)Ljava/lang/Object; !io/netty/util/internal/StringUtil join F(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/CharSequence; *()Lio/netty/handler/codec/http/HttpMethod; equals java/util/Queue add io/netty/util/ReferenceCountUtil retain &(Ljava/lang/Object;)Ljava/lang/Object; ?$SwitchMap$io$netty$handler$codec$http$HttpContentEncoder$State [I ordinal status 2()Lio/netty/handler/codec/http/HttpResponseStatus; .io/netty/handler/codec/http/HttpResponseStatus poll ()Ljava/lang/Object; (Ljava/lang/String;)V protocolVersion +()Lio/netty/handler/codec/http/HttpVersion; PASS_THROUGH ()Lio/netty/buffer/ByteBuf;
isReadable ()Z toString ()Ljava/lang/String; contentEncoder -()Lio/netty/channel/embedded/EmbeddedChannel; CONTENT_ENCODING targetContentEncoding set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; \(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;)V T(Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/HttpHeaders; CONTENT_LENGTH remove C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; TRANSFER_ENCODING ,io/netty/handler/codec/http/HttpHeaderValues CHUNKED
AWAIT_CONTENT $io/netty/handler/codec/http/HttpUtil isContentLengthSet ,(Lio/netty/handler/codec/http/HttpMessage;)Z
readableBytes setContentLength -(Lio/netty/handler/codec/http/HttpMessage;J)V 'io/netty/handler/codec/http/HttpVersion HTTP_1_0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getClass ()Ljava/lang/Class; java/lang/Class getName
getSimpleName (C)Ljava/lang/StringBuilder; trailingHeaders isEmpty EMPTY_LAST_CONTENT $io/netty/handler/codec/DecoderResult SUCCESS &Lio/netty/handler/codec/DecoderResult; R(Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/handler/codec/DecoderResult;)V )io/netty/channel/embedded/EmbeddedChannel finishAndReleaseAll fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext;
writeOutbound ([Ljava/lang/Object;)Z finish readOutbound release (Lio/netty/buffer/ByteBuf;)V desiredAssertionStatus CONTINUE 0Lio/netty/handler/codec/http/HttpResponseStatus;! n s z { | { } ~ ? ? ? ? ? ? ? ? ? ? ? ? I *? *? Y? ? *? ? ? ? 7 C E ? ? ? ? ? ? T +? ?
+? ? ? ? ? I ? ? ? ? ? ? @ ? ? ? ? ? ? ?,? ?
? :? ? 3 #?
:? ? ? :? ? :,? :? ? ? ? :? ? ? ? ? :*? ? W-,? ? W? ? > O P 0 R 5 S 8 U E V H Y Q ] Y ^ d _ l ` w a | d ? e ? f ? \ 5 ? { E ? { ? ? ? ? ? ? ? ? ? ? ? ? Q C ? { ? ? ? Y ; ? ? ? ? ? ? ? ? ? ? + ? 0 ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
,? ? ,? ? ? 6? *? ? .? ? ? ?,? ? ? *? ? ? !Y? "?,? :? # ? $6? %? :? *? ? & ? :?
? 'Y(? )?? * ? +? *? -? ? W?L-? W*? ,? ?9? "? -? . ? /? -? ? W?*? 0 ? 1:? *? -? ? W? ?-? W*? ,? ? ?*? 2? ? 3 ? 4? 5? 6W? I? 7Y? * ? # ? 8: ? 3 ? 3 ? 9W- ? W? :* ? -? ;? s? 3 ?