public class io.netty.example.spdy.client.HttpResponseClientHandler extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.spdy.client.HttpResponseClientHandler
super_class: io.netty.channel.SimpleChannelInboundHandler
{
private final java.util.concurrent.BlockingQueue<io.netty.channel.ChannelFuture> queue;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<Lio/netty/channel/ChannelFuture;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.channel.SimpleChannelInboundHandler.<init>:()V
1: aload 0
new java.util.concurrent.LinkedBlockingQueue
dup
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
putfield io.netty.example.spdy.client.HttpResponseClientHandler.queue:Ljava/util/concurrent/BlockingQueue;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/spdy/client/HttpResponseClientHandler;
public void channelRead0(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http.HttpObject);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.handler.codec.http.HttpResponse
ifeq 18
1: aload 2
checkcast io.netty.handler.codec.http.HttpResponse
astore 3
start local 3 2: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "STATUS: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "VERSION: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.protocolVersion:()Lio/netty/handler/codec/http/HttpVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
5: aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
invokevirtual io.netty.handler.codec.http.HttpHeaders.isEmpty:()Z
ifne 14
6: aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
invokevirtual io.netty.handler.codec.http.HttpHeaders.names:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 12
StackMap locals: io.netty.example.spdy.client.HttpResponseClientHandler io.netty.channel.ChannelHandlerContext io.netty.handler.codec.http.HttpObject io.netty.handler.codec.http.HttpResponse top java.util.Iterator
StackMap stack:
7: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 4
start local 4 8: aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
aload 4
invokevirtual io.netty.handler.codec.http.HttpHeaders.getAll:(Ljava/lang/CharSequence;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: io.netty.example.spdy.client.HttpResponseClientHandler io.netty.channel.ChannelHandlerContext io.netty.handler.codec.http.HttpObject io.netty.handler.codec.http.HttpResponse java.lang.CharSequence java.util.Iterator top java.util.Iterator
StackMap stack:
9: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 6
start local 6 10: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "HEADER: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 6 11: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 4 12: StackMap locals: io.netty.example.spdy.client.HttpResponseClientHandler io.netty.channel.ChannelHandlerContext io.netty.handler.codec.http.HttpObject io.netty.handler.codec.http.HttpResponse top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
13: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
14: StackMap locals: io.netty.example.spdy.client.HttpResponseClientHandler io.netty.channel.ChannelHandlerContext io.netty.handler.codec.http.HttpObject io.netty.handler.codec.http.HttpResponse
StackMap stack:
aload 3
invokestatic io.netty.handler.codec.http.HttpUtil.isTransferEncodingChunked:(Lio/netty/handler/codec/http/HttpMessage;)Z
ifeq 17
15: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "CHUNKED CONTENT {"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: goto 18
17: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "CONTENT {"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 3 18: StackMap locals:
StackMap stack:
aload 2
instanceof io.netty.handler.codec.http.HttpContent
ifeq 25
19: aload 2
checkcast io.netty.handler.codec.http.HttpContent
astore 3
start local 3 20: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 3
invokeinterface io.netty.handler.codec.http.HttpContent.content:()Lio/netty/buffer/ByteBuf;
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.toString:(Ljava/nio/charset/Charset;)Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
21: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.flush:()V
22: aload 3
instanceof io.netty.handler.codec.http.LastHttpContent
ifeq 25
23: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "} END OF CONTENT"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: aload 0
getfield io.netty.example.spdy.client.HttpResponseClientHandler.queue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.newSucceededFuture:()Lio/netty/channel/ChannelFuture;
invokeinterface java.util.concurrent.BlockingQueue.add:(Ljava/lang/Object;)Z
pop
end local 3 25: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lio/netty/example/spdy/client/HttpResponseClientHandler;
0 26 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 26 2 msg Lio/netty/handler/codec/http/HttpObject;
2 18 3 response Lio/netty/handler/codec/http/HttpResponse;
8 12 4 name Ljava/lang/CharSequence;
10 11 6 value Ljava/lang/CharSequence;
20 25 3 content Lio/netty/handler/codec/http/HttpContent;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
public void exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.example.spdy.client.HttpResponseClientHandler.queue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
aload 2
invokeinterface io.netty.channel.Channel.newFailedFuture:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelFuture;
invokeinterface java.util.concurrent.BlockingQueue.add:(Ljava/lang/Object;)Z
pop
1: aload 2
invokevirtual java.lang.Throwable.printStackTrace:()V
2: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.close:()Lio/netty/channel/ChannelFuture;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/example/spdy/client/HttpResponseClientHandler;
0 4 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 4 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
ctx
cause
public java.util.concurrent.BlockingQueue<io.netty.channel.ChannelFuture> queue();
descriptor: ()Ljava/util/concurrent/BlockingQueue;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.example.spdy.client.HttpResponseClientHandler.queue:Ljava/util/concurrent/BlockingQueue;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/spdy/client/HttpResponseClientHandler;
Signature: ()Ljava/util/concurrent/BlockingQueue<Lio/netty/channel/ChannelFuture;>;
public void channelRead0(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.http.HttpObject
invokevirtual io.netty.example.spdy.client.HttpResponseClientHandler.channelRead0:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/channel/SimpleChannelInboundHandler<Lio/netty/handler/codec/http/HttpObject;>;
SourceFile: "HttpResponseClientHandler.java"