public class io.netty.example.spdy.client.SpdyClientStreamIdHandler extends io.netty.channel.ChannelOutboundHandlerAdapter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.spdy.client.SpdyClientStreamIdHandler
super_class: io.netty.channel.ChannelOutboundHandlerAdapter
{
private int currentStreamId;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 // io.netty.example.spdy.client.SpdyClientStreamIdHandler this
0: .line 28
aload 0 /* this */
invokespecial io.netty.channel.ChannelOutboundHandlerAdapter.<init>:()V
1: .line 30
aload 0 /* this */
iconst_1
putfield io.netty.example.spdy.client.SpdyClientStreamIdHandler.currentStreamId:I
2: .line 28
return
end local 0 // io.netty.example.spdy.client.SpdyClientStreamIdHandler this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/spdy/client/SpdyClientStreamIdHandler;
public boolean acceptOutboundMessage(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 // io.netty.example.spdy.client.SpdyClientStreamIdHandler this
start local 1 // java.lang.Object msg
0: .line 33
aload 1 /* msg */
instanceof io.netty.handler.codec.http.HttpMessage
ireturn
end local 1 // java.lang.Object msg
end local 0 // io.netty.example.spdy.client.SpdyClientStreamIdHandler this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/spdy/client/SpdyClientStreamIdHandler;
0 1 1 msg Ljava/lang/Object;
MethodParameters:
Name Flags
msg
public void write(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 // io.netty.example.spdy.client.SpdyClientStreamIdHandler this
start local 1 // io.netty.channel.ChannelHandlerContext ctx
start local 2 // java.lang.Object msg
start local 3 // io.netty.channel.ChannelPromise promise
0: .line 38
aload 0 /* this */
aload 2 /* msg */
invokevirtual io.netty.example.spdy.client.SpdyClientStreamIdHandler.acceptOutboundMessage:(Ljava/lang/Object;)Z
ifeq 5
1: .line 39
aload 2 /* msg */
checkcast io.netty.handler.codec.http.HttpMessage
astore 4 /* httpMsg */
start local 4 // io.netty.handler.codec.http.HttpMessage httpMsg
2: .line 40
aload 4 /* httpMsg */
invokeinterface io.netty.handler.codec.http.HttpMessage.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.spdy.SpdyHttpHeaders$Names.STREAM_ID:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.contains:(Ljava/lang/CharSequence;)Z
ifne 5
3: .line 41
aload 4 /* httpMsg */
invokeinterface io.netty.handler.codec.http.HttpMessage.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.spdy.SpdyHttpHeaders$Names.STREAM_ID:Lio/netty/util/AsciiString;
aload 0 /* this */
getfield io.netty.example.spdy.client.SpdyClientStreamIdHandler.currentStreamId:I
invokevirtual io.netty.handler.codec.http.HttpHeaders.setInt:(Ljava/lang/CharSequence;I)Lio/netty/handler/codec/http/HttpHeaders;
pop
4: .line 43
aload 0 /* this */
dup
getfield io.netty.example.spdy.client.SpdyClientStreamIdHandler.currentStreamId:I
iconst_2
iadd
putfield io.netty.example.spdy.client.SpdyClientStreamIdHandler.currentStreamId:I
end local 4 // io.netty.handler.codec.http.HttpMessage httpMsg
5: .line 46
StackMap locals:
StackMap stack:
aload 1 /* ctx */
aload 2 /* msg */
aload 3 /* promise */
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
pop
6: .line 47
return
end local 3 // io.netty.channel.ChannelPromise promise
end local 2 // java.lang.Object msg
end local 1 // io.netty.channel.ChannelHandlerContext ctx
end local 0 // io.netty.example.spdy.client.SpdyClientStreamIdHandler this
LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/example/spdy/client/SpdyClientStreamIdHandler;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 7 2 msg Ljava/lang/Object;
0 7 3 promise Lio/netty/channel/ChannelPromise;
2 5 4 httpMsg Lio/netty/handler/codec/http/HttpMessage;
MethodParameters:
Name Flags
ctx
msg
promise
}
SourceFile: "SpdyClientStreamIdHandler.java"
InnerClasses:
public final Names = io.netty.handler.codec.spdy.SpdyHttpHeaders$Names of io.netty.handler.codec.spdy.SpdyHttpHeaders