public class io.netty.handler.codec.http.HttpResponseEncoder extends io.netty.handler.codec.http.HttpObjectEncoder<io.netty.handler.codec.http.HttpResponse>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.http.HttpResponseEncoder
super_class: io.netty.handler.codec.http.HttpObjectEncoder
{
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/HttpResponseEncoder;
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.HttpRequest
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/HttpResponseEncoder;
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.HttpResponse);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.netty.handler.codec.http.HttpResponse.protocolVersion:()Lio/netty/handler/codec/http/HttpVersion;
aload 1
invokevirtual io.netty.handler.codec.http.HttpVersion.encode:(Lio/netty/buffer/ByteBuf;)V
1: aload 1
bipush 32
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: aload 2
invokeinterface io.netty.handler.codec.http.HttpResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
aload 1
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.encode:(Lio/netty/buffer/ByteBuf;)V
3: aload 1
sipush 3338
invokestatic io.netty.buffer.ByteBufUtil.writeShortBE:(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/codec/http/HttpResponseEncoder;
0 5 1 buf Lio/netty/buffer/ByteBuf;
0 5 2 response Lio/netty/handler/codec/http/HttpResponse;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
buf
response
protected void sanitizeHeadersBeforeEncode(io.netty.handler.codec.http.HttpResponse, boolean);
descriptor: (Lio/netty/handler/codec/http/HttpResponse;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 10
1: aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
astore 3
start local 3 2: aload 3
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.codeClass:()Lio/netty/handler/codec/http/HttpStatusClass;
getstatic io.netty.handler.codec.http.HttpStatusClass.INFORMATIONAL:Lio/netty/handler/codec/http/HttpStatusClass;
if_acmpeq 4
3: aload 3
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
getstatic io.netty.handler.codec.http.HttpResponseStatus.NO_CONTENT:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
if_icmpne 7
4: StackMap locals: io.netty.handler.codec.http.HttpResponseStatus
StackMap stack:
aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.CONTENT_LENGTH:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.remove:(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders;
pop
5: aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.TRANSFER_ENCODING:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.remove:(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders;
pop
6: goto 10
StackMap locals:
StackMap stack:
7: aload 3
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
getstatic io.netty.handler.codec.http.HttpResponseStatus.RESET_CONTENT:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
if_icmpne 10
8: aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.TRANSFER_ENCODING:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.remove:(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders;
pop
9: aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.CONTENT_LENGTH:Lio/netty/util/AsciiString;
iconst_0
invokevirtual io.netty.handler.codec.http.HttpHeaders.setInt:(Ljava/lang/CharSequence;I)Lio/netty/handler/codec/http/HttpHeaders;
pop
end local 3 10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/netty/handler/codec/http/HttpResponseEncoder;
0 11 1 msg Lio/netty/handler/codec/http/HttpResponse;
0 11 2 isAlwaysEmpty Z
2 10 3 status Lio/netty/handler/codec/http/HttpResponseStatus;
MethodParameters:
Name Flags
msg
isAlwaysEmpty
protected boolean isContentAlwaysEmpty(io.netty.handler.codec.http.HttpResponse);
descriptor: (Lio/netty/handler/codec/http/HttpResponse;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
astore 2
start local 2 1: aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.codeClass:()Lio/netty/handler/codec/http/HttpStatusClass;
getstatic io.netty.handler.codec.http.HttpStatusClass.INFORMATIONAL:Lio/netty/handler/codec/http/HttpStatusClass;
if_acmpne 5
2: aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
getstatic io.netty.handler.codec.http.HttpResponseStatus.SWITCHING_PROTOCOLS:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
if_icmpne 4
3: aload 1
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_VERSION:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.contains:(Ljava/lang/CharSequence;)Z
ireturn
4: StackMap locals: io.netty.handler.codec.http.HttpResponseStatus
StackMap stack:
iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
getstatic io.netty.handler.codec.http.HttpResponseStatus.NO_CONTENT:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
if_icmpeq 9
6: aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
getstatic io.netty.handler.codec.http.HttpResponseStatus.NOT_MODIFIED:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
if_icmpeq 9
7: aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
getstatic io.netty.handler.codec.http.HttpResponseStatus.RESET_CONTENT:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
if_icmpeq 9
8: iconst_0
ireturn
StackMap locals:
StackMap stack:
9: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/handler/codec/http/HttpResponseEncoder;
0 10 1 msg Lio/netty/handler/codec/http/HttpResponse;
1 10 2 status Lio/netty/handler/codec/http/HttpResponseStatus;
MethodParameters:
Name Flags
msg
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.HttpResponse
invokevirtual io.netty.handler.codec.http.HttpResponseEncoder.encodeInitialLine:(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/http/HttpResponse;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
protected void sanitizeHeadersBeforeEncode(io.netty.handler.codec.http.HttpMessage, boolean);
descriptor: (Lio/netty/handler/codec/http/HttpMessage;Z)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast io.netty.handler.codec.http.HttpResponse
iload 2
invokevirtual io.netty.handler.codec.http.HttpResponseEncoder.sanitizeHeadersBeforeEncode:(Lio/netty/handler/codec/http/HttpResponse;Z)V
return
LocalVariableTable:
Start End Slot Name Signature
protected boolean isContentAlwaysEmpty(io.netty.handler.codec.http.HttpMessage);
descriptor: (Lio/netty/handler/codec/http/HttpMessage;)Z
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.netty.handler.codec.http.HttpResponse
invokevirtual io.netty.handler.codec.http.HttpResponseEncoder.isContentAlwaysEmpty:(Lio/netty/handler/codec/http/HttpResponse;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lio/netty/handler/codec/http/HttpObjectEncoder<Lio/netty/handler/codec/http/HttpResponse;>;
SourceFile: "HttpResponseEncoder.java"