public class io.netty.handler.codec.http.HttpRequestEncoder extends io.netty.handler.codec.http.HttpObjectEncoder<io.netty.handler.codec.http.HttpRequest>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.http.HttpRequestEncoder
super_class: io.netty.handler.codec.http.HttpObjectEncoder
{
private static final char SLASH;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 47
private static final char QUESTION_MARK;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 63
private static final int SLASH_AND_SPACE_SHORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12064
private static final int SPACE_SLASH_AND_SPACE_MEDIUM;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2109216
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.handler.codec.http.HttpObjectEncoder.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/HttpRequestEncoder;
public boolean acceptOutboundMessage(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.handler.codec.http.HttpObjectEncoder.acceptOutboundMessage:(Ljava/lang/Object;)Z
ifeq 1
aload 1
instanceof io.netty.handler.codec.http.HttpResponse
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/http/HttpRequestEncoder;
0 2 1 msg Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
msg
protected void encodeInitialLine(io.netty.buffer.ByteBuf, io.netty.handler.codec.http.HttpRequest);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpRequest;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.netty.handler.codec.http.HttpRequest.method:()Lio/netty/handler/codec/http/HttpMethod;
invokevirtual io.netty.handler.codec.http.HttpMethod.asciiName:()Lio/netty/util/AsciiString;
aload 1
invokestatic io.netty.buffer.ByteBufUtil.copy:(Lio/netty/util/AsciiString;Lio/netty/buffer/ByteBuf;)V
1: aload 2
invokeinterface io.netty.handler.codec.http.HttpRequest.uri:()Ljava/lang/String;
astore 3
start local 3 2: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 5
3: aload 1
ldc 2109216
invokestatic io.netty.buffer.ByteBufUtil.writeMediumBE:(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
pop
4: goto 22
5: StackMap locals: java.lang.String
StackMap stack:
aload 3
astore 4
start local 4 6: iconst_0
istore 5
start local 5 7: aload 3
ldc "://"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 6
start local 6 8: iload 6
iconst_m1
if_icmpeq 17
aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpeq 17
9: iinc 6 3
10: aload 3
bipush 63
iload 6
invokevirtual java.lang.String.indexOf:(II)I
istore 7
start local 7 11: iload 7
iconst_m1
if_icmpne 15
12: aload 3
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
iload 6
if_icmpge 17
13: iconst_1
istore 5
14: goto 17
15: StackMap locals: io.netty.handler.codec.http.HttpRequestEncoder io.netty.buffer.ByteBuf io.netty.handler.codec.http.HttpRequest java.lang.String java.lang.CharSequence int int int
StackMap stack:
aload 3
bipush 47
iload 7
invokevirtual java.lang.String.lastIndexOf:(II)I
iload 6
if_icmpge 17
16: new java.lang.StringBuilder
dup
aload 3
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
bipush 47
invokevirtual java.lang.StringBuilder.insert:(IC)Ljava/lang/StringBuilder;
astore 4
end local 7 17: StackMap locals:
StackMap stack:
aload 1
bipush 32
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
aload 4
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.writeCharSequence:(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
pop
18: iload 5
ifeq 21
19: aload 1
sipush 12064
invokestatic io.netty.buffer.ByteBufUtil.writeShortBE:(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
pop
20: goto 22
21: StackMap locals:
StackMap stack:
aload 1
bipush 32
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
end local 6 end local 5 end local 4 22: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.netty.handler.codec.http.HttpRequest.protocolVersion:()Lio/netty/handler/codec/http/HttpVersion;
aload 1
invokevirtual io.netty.handler.codec.http.HttpVersion.encode:(Lio/netty/buffer/ByteBuf;)V
23: aload 1
sipush 3338
invokestatic io.netty.buffer.ByteBufUtil.writeShortBE:(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
pop
24: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lio/netty/handler/codec/http/HttpRequestEncoder;
0 25 1 buf Lio/netty/buffer/ByteBuf;
0 25 2 request Lio/netty/handler/codec/http/HttpRequest;
2 25 3 uri Ljava/lang/String;
6 22 4 uriCharSequence Ljava/lang/CharSequence;
7 22 5 needSlash Z
8 22 6 start I
11 17 7 index I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
buf
request
protected void encodeInitialLine(io.netty.buffer.ByteBuf, io.netty.handler.codec.http.HttpMessage);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpMessage;)V
flags: (0x1044) ACC_PROTECTED, 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.HttpRequest
invokevirtual io.netty.handler.codec.http.HttpRequestEncoder.encodeInitialLine:(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpRequest;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/handler/codec/http/HttpObjectEncoder<Lio/netty/handler/codec/http/HttpRequest;>;
SourceFile: "HttpRequestEncoder.java"