io.netty.handler.codec.spdy.SpdyHttpEncoder.class Maven / Gradle / Ivy
???? 2w +io/netty/handler/codec/spdy/SpdyHttpEncoder ZLio/netty/handler/codec/MessageToMessageEncoder; .io/netty/handler/codec/MessageToMessageEncoder SpdyHttpEncoder.java java/util/Map$Entry
java/util/Map Entry 1io/netty/handler/codec/spdy/SpdyHttpHeaders$Names +io/netty/handler/codec/spdy/SpdyHttpHeaders Names 1io/netty/handler/codec/spdy/SpdyHeaders$HttpNames 'io/netty/handler/codec/spdy/SpdyHeaders HttpNames currentStreamId I validateHeaders Z headersToLowerCase ,(Lio/netty/handler/codec/spdy/SpdyVersion;)V .(Lio/netty/handler/codec/spdy/SpdyVersion;ZZ)V
this -Lio/netty/handler/codec/spdy/SpdyHttpEncoder; version )Lio/netty/handler/codec/spdy/SpdyVersion; ()V $
% java/lang/NullPointerException ' " (Ljava/lang/String;)V *
( + 'io/netty/handler/codec/spdy/SpdyVersion - / 1 encode c(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V java/lang/Exception 5 'io/netty/handler/codec/http/HttpRequest 7 createSynStreamFrame [(Lio/netty/handler/codec/http/HttpRequest;)Lio/netty/handler/codec/spdy/SpdySynStreamFrame; 9 :
; java/util/List = add (Ljava/lang/Object;)Z ? @ > A .io/netty/handler/codec/spdy/SpdySynStreamFrame C isLast ()Z E F D G isUnidirectional I F D J &io/netty/channel/ChannelHandlerContext L &io/netty/handler/codec/http/HttpObject N (io/netty/handler/codec/http/HttpResponse P createHeadersFrame Z(Lio/netty/handler/codec/http/HttpResponse;)Lio/netty/handler/codec/spdy/SpdyHeadersFrame; R S
T ,io/netty/handler/codec/spdy/SpdyHeadersFrame V W G 'io/netty/handler/codec/http/HttpContent Y content ()Lio/netty/buffer/ByteBuf; [ \ Z ] io/netty/buffer/ByteBuf _ retain a \
` b 0io/netty/handler/codec/spdy/DefaultSpdyDataFrame d f (ILio/netty/buffer/ByteBuf;)V h
e i +io/netty/handler/codec/http/LastHttpContent k trailingHeaders +()Lio/netty/handler/codec/http/HttpHeaders; m n l o 'io/netty/handler/codec/http/HttpHeaders q isEmpty s F
r t )io/netty/handler/codec/spdy/SpdyDataFrame v setLast .(Z)Lio/netty/handler/codec/spdy/SpdyDataFrame; x y w z 3io/netty/handler/codec/spdy/DefaultSpdyHeadersFrame | (IZ)V ~
} 1(Z)Lio/netty/handler/codec/spdy/SpdyHeadersFrame; x ? W ? iteratorCharSequence ()Ljava/util/Iterator; ? ?
r ? java/util/Iterator ? hasNext ? F ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? java/lang/CharSequence ? io/netty/util/AsciiString ? of 5(Ljava/lang/CharSequence;)Lio/netty/util/AsciiString; ? ?
? ? toLowerCase ()Lio/netty/util/AsciiString; ? ?
? ? headers +()Lio/netty/handler/codec/spdy/SpdyHeaders; ? ? W ? getValue ? ? ? F(Ljava/lang/Object;Ljava/lang/Object;)Lio/netty/handler/codec/Headers; ? ? ? 6io/netty/handler/codec/UnsupportedMessageTypeException ? java/lang/Class ? '(Ljava/lang/Object;[Ljava/lang/Class;)V ?
? ? httpRequest )Lio/netty/handler/codec/http/HttpRequest; spdySynStreamFrame 0Lio/netty/handler/codec/spdy/SpdySynStreamFrame; httpResponse *Lio/netty/handler/codec/http/HttpResponse; spdyHeadersFrame .Lio/netty/handler/codec/spdy/SpdyHeadersFrame; entry GLjava/util/Map$Entry; Ljava/util/Map$Entry;
headerName Ljava/lang/CharSequence; itr ]Ljava/util/Iterator;>; Ljava/util/Iterator; trailer -Lio/netty/handler/codec/http/LastHttpContent; trailers )Lio/netty/handler/codec/http/HttpHeaders; chunk )Lio/netty/handler/codec/http/HttpContent;
spdyDataFrame +Lio/netty/handler/codec/spdy/SpdyDataFrame; ctx (Lio/netty/channel/ChannelHandlerContext; msg (Lio/netty/handler/codec/http/HttpObject; out $Ljava/util/List; Ljava/util/List; valid last ? n 8 ? STREAM_ID Lio/netty/util/AsciiString; ? ?
? getInt -(Ljava/lang/CharSequence;)Ljava/lang/Integer; ? ?
r ? java/lang/Integer ? intValue ()I ? ?
? ? ASSOCIATED_TO_STREAM_ID ? ?
? (Ljava/lang/CharSequence;I)I ? ?
r ? PRIORITY ? ?
? SCHEME ? ?
? get ,(Ljava/lang/CharSequence;)Ljava/lang/String; ? ?
r ? remove C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; ? ?
r ? +io/netty/handler/codec/http/HttpHeaderNames ?
CONNECTION ? ? ? ?
Keep-Alive ? =(Ljava/lang/String;)Lio/netty/handler/codec/http/HttpHeaders; ? ?
r ? Proxy-Connection TRANSFER_ENCODING ? ? 5io/netty/handler/codec/spdy/DefaultSpdySynStreamFrame (IIBZ)V
D ? METHOD ? method *()Lio/netty/handler/codec/http/HttpMethod; 8 &io/netty/handler/codec/http/HttpMethod name ()Ljava/lang/String;
set ? PATH ? uri 8 VERSION! ? " protocolVersion +()Lio/netty/handler/codec/http/HttpVersion;$% 8& 'io/netty/handler/codec/http/HttpVersion( text*
)+ HOST- ? ?. . https1 ? streamId4 ? D5 ,(Lio/netty/handler/codec/http/HttpMessage;)Z E7
8 3(Z)Lio/netty/handler/codec/spdy/SpdySynStreamFrame; x: D; setUnidirectional=: D> httpHeaders associatedToStreamId priority B scheme frameHeaders )Lio/netty/handler/codec/spdy/SpdyHeaders; host Q ? )io/netty/handler/codec/spdy/SpdyCodecUtilI
isServerId (I)ZKL
JM 4io/netty/handler/codec/spdy/DefaultSpdySynReplyFrameO
P STATUSR ? S status 2()Lio/netty/handler/codec/http/HttpResponseStatus;UV QW .io/netty/handler/codec/http/HttpResponseStatusY
codeAsText[ ?
Z\ Q& +io/netty/handler/codec/http/FullHttpMessage_` o` ]
isReadablec F
`d fullMessage -Lio/netty/handler/codec/http/FullHttpMessage; httpMessage )Lio/netty/handler/codec/http/HttpMessage; M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V 3 4
k Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature w(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V
SourceFile InnerClasses ! m @ *+? ? n ! " # o
? ? m ? *? &+?
? (Y)? ,?*? 0*? 2? n * ! " # o ? ? ? ? ? ?p ? . 3 4 m ? |66,? 8? 8,? 8:*? <:-? B W? H ?
? K ? ? 66,? Q? &,? Q:*? U:-? B W? X 66,? Z? ?? ?,? Z:? ^ ? cW? eY*? g? ^ ? j:? l? ?? l:? p : ? u? ? { W-? B W? ?? }Y*? g*? 2? ?:
? ? W ? ?:? ? ? N? ? ? :*? 0? ? ? ? ?? ?? ??
? ? ? ?:
? ?
? ? ? ? W???-? B W-
? B W? -? B W6? ? ?Y,? ?? ??? n ? / ? ? ' ? ? O ? ? W ? ? <