io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler.class Maven / Gradle / Ivy
???? 2 z ;io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler kLio/netty/handler/codec/MessageToMessageCodec; ,io/netty/handler/codec/MessageToMessageCodec $SpdyHttpResponseStreamIdHandler.java 1io/netty/handler/codec/spdy/SpdyHttpHeaders$Names +io/netty/handler/codec/spdy/SpdyHttpHeaders Names NO_ID Ljava/lang/Integer; ids Ljava/util/Queue; &Ljava/util/Queue; ()V
java/util/LinkedList
this =Lio/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler; acceptInboundMessage (Ljava/lang/Object;)Z java/lang/Exception 'io/netty/handler/codec/http/HttpMessage .io/netty/handler/codec/spdy/SpdyRstStreamFrame " msg Ljava/lang/Object; encode d(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpMessage;Ljava/util/List;)V java/util/Queue ( poll ()Ljava/lang/Object; * + ) , java/lang/Integer . intValue ()I 0 1
/ 2
4 headers +()Lio/netty/handler/codec/http/HttpHeaders; 6 7 ! 8 STREAM_ID Lio/netty/util/AsciiString; : ; < 'io/netty/handler/codec/http/HttpHeaders > contains (Ljava/lang/CharSequence;)Z @ A
? B setInt D(Ljava/lang/CharSequence;I)Lio/netty/handler/codec/http/HttpHeaders; D E
? F io/netty/util/ReferenceCountUtil H retain &(Ljava/lang/Object;)Ljava/lang/Object; J K
I L java/util/List N add P O Q ctx (Lio/netty/channel/ChannelHandlerContext; )Lio/netty/handler/codec/http/HttpMessage; out $Ljava/util/List; Ljava/util/List; id decode M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V ) Q getInt -(Ljava/lang/CharSequence;)Ljava/lang/Integer; ] ^
? _ streamId a 1 # b valueOf (I)Ljava/lang/Integer; d e
/ f remove h ) i Z &