public class io.netty.example.spdy.server.SpdyOrHttpHandler extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.spdy.server.SpdyOrHttpHandler
super_class: io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
{
private static final int MAX_CONTENT_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 102400
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "http/1.1"
invokespecial io.netty.handler.ssl.ApplicationProtocolNegotiationHandler.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/example/spdy/server/SpdyOrHttpHandler;
protected void configurePipeline(io.netty.channel.ChannelHandlerContext, java.lang.String);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "spdy/3.1"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 1
getstatic io.netty.handler.codec.spdy.SpdyVersion.SPDY_3_1:Lio/netty/handler/codec/spdy/SpdyVersion;
invokestatic io.netty.example.spdy.server.SpdyOrHttpHandler.configureSpdy:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/spdy/SpdyVersion;)V
2: return
3: StackMap locals:
StackMap stack:
ldc "http/1.1"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 1
invokestatic io.netty.example.spdy.server.SpdyOrHttpHandler.configureHttp1:(Lio/netty/channel/ChannelHandlerContext;)V
5: return
6: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "unknown protocol: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/example/spdy/server/SpdyOrHttpHandler;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 7 2 protocol Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protocol
private static void configureSpdy(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.spdy.SpdyVersion);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/spdy/SpdyVersion;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 2
start local 2 1: aload 2
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.spdy.SpdyFrameCodec
dup
aload 1
invokespecial io.netty.handler.codec.spdy.SpdyFrameCodec.<init>:(Lio/netty/handler/codec/spdy/SpdyVersion;)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
2: aload 2
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.spdy.SpdySessionHandler
dup
aload 1
iconst_1
invokespecial io.netty.handler.codec.spdy.SpdySessionHandler.<init>:(Lio/netty/handler/codec/spdy/SpdyVersion;Z)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
3: aload 2
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.spdy.SpdyHttpEncoder
dup
aload 1
invokespecial io.netty.handler.codec.spdy.SpdyHttpEncoder.<init>:(Lio/netty/handler/codec/spdy/SpdyVersion;)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: aload 2
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.spdy.SpdyHttpDecoder
dup
aload 1
ldc 102400
invokespecial io.netty.handler.codec.spdy.SpdyHttpDecoder.<init>:(Lio/netty/handler/codec/spdy/SpdyVersion;I)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
5: aload 2
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler
dup
invokespecial io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
6: aload 2
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.example.spdy.server.SpdyServerHandler
dup
invokespecial io.netty.example.spdy.server.SpdyServerHandler.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 ctx Lio/netty/channel/ChannelHandlerContext;
0 8 1 version Lio/netty/handler/codec/spdy/SpdyVersion;
1 8 2 p Lio/netty/channel/ChannelPipeline;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
version
private static void configureHttp1(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 1
start local 1 1: aload 1
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.http.HttpServerCodec
dup
invokespecial io.netty.handler.codec.http.HttpServerCodec.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
2: aload 1
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.http.HttpObjectAggregator
dup
ldc 102400
invokespecial io.netty.handler.codec.http.HttpObjectAggregator.<init>:(I)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
3: aload 1
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.example.spdy.server.SpdyServerHandler
dup
invokespecial io.netty.example.spdy.server.SpdyServerHandler.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 ctx Lio/netty/channel/ChannelHandlerContext;
1 5 1 p Lio/netty/channel/ChannelPipeline;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
}
SourceFile: "SpdyOrHttpHandler.java"