io.netty.handler.codec.spdy.SpdyHttpDecoder.class Maven / Gradle / Ivy
???? 2? +io/netty/handler/codec/spdy/SpdyHttpDecoder YLio/netty/handler/codec/MessageToMessageDecoder; .io/netty/handler/codec/MessageToMessageDecoder SpdyHttpDecoder.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 validateHeaders Z spdyVersion I maxContentLength
messageMap Ljava/util/Map; QLjava/util/Map; -(Lio/netty/handler/codec/spdy/SpdyVersion;I)V java/util/HashMap ()V "
! # =(Lio/netty/handler/codec/spdy/SpdyVersion;ILjava/util/Map;Z)V %
& this -Lio/netty/handler/codec/spdy/SpdyHttpDecoder; version )Lio/netty/handler/codec/spdy/SpdyVersion; .(Lio/netty/handler/codec/spdy/SpdyVersion;IZ)V <(Lio/netty/handler/codec/spdy/SpdyVersion;ILjava/util/Map;)V
# java/lang/NullPointerException / * (Ljava/lang/String;)V 2
0 3 'io/netty/handler/codec/spdy/SpdyVersion 5 "java/lang/IllegalArgumentException 7 java/lang/StringBuilder 9
: # -maxContentLength must be a positive integer: < append -(Ljava/lang/String;)Ljava/lang/StringBuilder; > ?
: @ (I)Ljava/lang/StringBuilder; > B
: C toString ()Ljava/lang/String; E F
: G
8 3
getVersion ()I J K
6 L N P R T channelInactive +(Lio/netty/channel/ChannelHandlerContext;)V java/lang/Exception X entrySet ()Ljava/util/Set; Z [
\
java/util/Set ^ iterator ()Ljava/util/Iterator; ` a _ b java/util/Iterator d hasNext ()Z f g e h next ()Ljava/lang/Object; j k e l getValue n k o io/netty/util/ReferenceCountUtil q safeRelease (Ljava/lang/Object;)V s t
r u clear w "
x V W
z entry WLjava/util/Map$Entry; Ljava/util/Map$Entry; ctx (Lio/netty/channel/ChannelHandlerContext;
putMessage ](ILio/netty/handler/codec/http/FullHttpMessage;)Lio/netty/handler/codec/http/FullHttpMessage; java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ?
? +io/netty/handler/codec/http/FullHttpMessage ? streamId message -Lio/netty/handler/codec/http/FullHttpMessage;
getMessage 0(I)Lio/netty/handler/codec/http/FullHttpMessage; get &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
?
removeMessage remove ? ?
? decode b(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/spdy/SpdyFrame;Ljava/util/List;)V java/lang/Throwable ? .io/netty/handler/codec/spdy/SpdySynStreamFrame ? ? K ? ? )io/netty/handler/codec/spdy/SpdyCodecUtil ?
isServerId (I)Z ? ?
? ? associatedStreamId ? K ? ? 5io/netty/handler/codec/spdy/DefaultSpdyRstStreamFrame ? ,io/netty/handler/codec/spdy/SpdyStreamStatus ? INVALID_STREAM .Lio/netty/handler/codec/spdy/SpdyStreamStatus; ? ? ? ? 2(ILio/netty/handler/codec/spdy/SpdyStreamStatus;)V ?
? ? &io/netty/channel/ChannelHandlerContext ?
writeAndFlush 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture; ? ? ? ? isLast ? g ? ? PROTOCOL_ERROR ? ? ? ? isTruncated ? g ? ? INTERNAL_ERROR ? ? ? ? alloc $()Lio/netty/buffer/ByteBufAllocator; ? ? ? ? createHttpRequest (Lio/netty/handler/codec/spdy/SpdyHeadersFrame;Lio/netty/buffer/ByteBufAllocator;)Lio/netty/handler/codec/http/FullHttpRequest; ? ?
? +io/netty/handler/codec/http/FullHttpRequest ? headers +()Lio/netty/handler/codec/http/HttpHeaders; ? ? ? ? STREAM_ID Lio/netty/util/AsciiString; ? ?
? 'io/netty/handler/codec/http/HttpHeaders ? setInt D(Ljava/lang/CharSequence;I)Lio/netty/handler/codec/http/HttpHeaders; ? ?
? ? ASSOCIATED_TO_STREAM_ID ? ?
? PRIORITY ? ?
? priority ()B ? ? ? ? java/util/List ? add (Ljava/lang/Object;)Z ? ? ? ? 4io/netty/handler/codec/spdy/DefaultSpdySynReplyFrame ? (I)V ?
? ? -io/netty/handler/codec/spdy/SpdySynReplyFrame ? setLast 2(Z)Lio/netty/handler/codec/spdy/SpdySynReplyFrame; ? ? ? ? +()Lio/netty/handler/codec/spdy/SpdyHeaders; ? ? ? ? STATUS ? .io/netty/handler/codec/http/HttpResponseStatus REQUEST_HEADER_FIELDS_TOO_LARGE 0Lio/netty/handler/codec/http/HttpResponseStatus; code K
5(Ljava/lang/Object;I)Lio/netty/handler/codec/Headers; ?
VERSION ? 'io/netty/handler/codec/http/HttpVersion HTTP_1_0 )Lio/netty/handler/codec/http/HttpVersion; setObject F(Ljava/lang/Object;Ljava/lang/Object;)Lio/netty/handler/codec/Headers; ? ?
BAD_REQUEST ? ? ? ? createHttpResponse ?(Lio/netty/handler/codec/spdy/SpdyHeadersFrame;Lio/netty/buffer/ByteBufAllocator;Z)Lio/netty/handler/codec/http/FullHttpResponse;#$
% ,io/netty/handler/codec/http/FullHttpResponse'( ? ? ? $io/netty/handler/codec/http/HttpUtil+ setContentLength -(Lio/netty/handler/codec/http/HttpMessage;J)V-.
,/ ,io/netty/handler/codec/spdy/SpdyHeadersFrame12 ? ? ?
42 ? ? ?2 ?2 ? b getKey; k < java/lang/CharSequence> U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; ?@
?A content ()Lio/netty/buffer/ByteBuf;CD ?E io/netty/buffer/ByteBufG
readableBytesI K
HJ ? ?
L )io/netty/handler/codec/spdy/SpdyDataFrameNO ?OE ,io/netty/handler/codec/TooLongFrameExceptionR HTTP content length exceeded T bytes.V
S 3 readerIndexY K
HZ
writeBytes 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;\]
H^O ? %io/netty/handler/codec/spdy/SpdyFramea .io/netty/handler/codec/spdy/SpdyRstStreamFramecd ? spdyRstStreamFrame 0Lio/netty/handler/codec/spdy/SpdyRstStreamFrame; httpRequestWithEntity -Lio/netty/handler/codec/http/FullHttpRequest; ignored Ljava/lang/Throwable; associatedToStreamId spdySynReplyFrame /Lio/netty/handler/codec/spdy/SpdySynReplyFrame; frameHeaders )Lio/netty/handler/codec/spdy/SpdyHeaders; t spdySynStreamFrame 0Lio/netty/handler/codec/spdy/SpdySynStreamFrame; httpResponseWithEntity .Lio/netty/handler/codec/http/FullHttpResponse; e GLjava/util/Map$Entry; spdyHeadersFrame .Lio/netty/handler/codec/spdy/SpdyHeadersFrame; fullHttpMessage
spdyDataFrame +Lio/netty/handler/codec/spdy/SpdyDataFrame; Lio/netty/buffer/ByteBuf; spdyDataFrameData spdyDataFrameDataLen msg 'Lio/netty/handler/codec/spdy/SpdyFrame; out $Ljava/util/List; Ljava/util/List; METHOD? ? ? getAsString ,(Ljava/lang/CharSequence;)Ljava/lang/String;?? ? &io/netty/handler/codec/http/HttpMethod? <(Ljava/lang/String;)Lio/netty/handler/codec/http/HttpMethod; ??
?? PATH? ? ? =(Ljava/lang/String;)Lio/netty/handler/codec/http/HttpVersion; ??
? ? ? ? io/netty/buffer/ByteBufAllocator? buffer?D?? 2io/netty/handler/codec/http/DefaultFullHttpRequest? (Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpMethod;Ljava/lang/String;Lio/netty/buffer/ByteBuf;)V ?
?? SCHEME? ? ? HOST? ? ? ? +io/netty/handler/codec/http/HttpHeaderNames? ?? set?@
?? java/lang/String? setKeepAlive -(Lio/netty/handler/codec/http/HttpMessage;Z)V??
,? TRANSFER_ENCODING? ? ?? C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; ??
?? release? g
H? req host Ljava/lang/CharSequence; requestFrame "Lio/netty/buffer/ByteBufAllocator; method (Lio/netty/handler/codec/http/HttpMethod; url Ljava/lang/String; httpVersion parseLine J(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpResponseStatus;??
? 3io/netty/handler/codec/http/DefaultFullHttpResponse? v(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;Lio/netty/buffer/ByteBuf;Z)V ?
?? TRAILER? ? ?? res
responseFrame status M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V ? ?
? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable ~(Lio/netty/handler/codec/spdy/SpdyVersion;ILjava/util/Map;)V
StackMapTable (Lio/netty/handler/codec/spdy/SpdyVersion;ILjava/util/Map;Z)V
Exceptions v(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/spdy/SpdyFrame;Ljava/util/List;)V
SourceFile InnerClasses ! ? ? Q *+? !Y? $? '? ? ( ) * + ?
> ? , ? [ *+? !Y? $? '? ? * ( ) * + ?
K L - ? g *+-? '? ? * ( ) * + ? ?
X Y? ? % ? ? J*? .+?
? 0Y1? 4?? ? 8Y? :Y? ;=? A? D? H? I?*+? M? O*? Q*-? S*? U? ? 4 J ( ) J * + J J J ? J ? *
f g h j k 1 n 9 o > p C q I r? ? 6
? ? V W ? ? =*? S? ] ? c M,? i ? ,? m ? N-? p ? v???*? S? y *+? {? ? " | ~ = ( ) = ? ? " | } ? w " x + y . z 7 { <