class jakarta.servlet.http.NoBodyResponse extends jakarta.servlet.http.HttpServletResponseWrapper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jakarta.servlet.http.NoBodyResponse
super_class: jakarta.servlet.http.HttpServletResponseWrapper
{
private final jakarta.servlet.http.NoBodyOutputStream noBody;
descriptor: Ljakarta/servlet/http/NoBodyOutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.io.PrintWriter writer;
descriptor: Ljava/io/PrintWriter;
flags: (0x0002) ACC_PRIVATE
private boolean didSetContentLength;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.<init>:(Ljakarta/servlet/http/HttpServletResponse;)V
1: aload 0
new jakarta.servlet.http.NoBodyOutputStream
dup
aload 0
invokespecial jakarta.servlet.http.NoBodyOutputStream.<init>:(Ljakarta/servlet/http/HttpServletResponse;)V
putfield jakarta.servlet.http.NoBodyResponse.noBody:Ljakarta/servlet/http/NoBodyOutputStream;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 r Ljakarta/servlet/http/HttpServletResponse;
MethodParameters:
Name Flags
r
void setContentLength();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.NoBodyResponse.didSetContentLength:Z
ifne 4
1: aload 0
getfield jakarta.servlet.http.NoBodyResponse.writer:Ljava/io/PrintWriter;
ifnull 3
2: aload 0
getfield jakarta.servlet.http.NoBodyResponse.writer:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jakarta.servlet.http.NoBodyResponse.noBody:Ljakarta/servlet/http/NoBodyOutputStream;
invokevirtual jakarta.servlet.http.NoBodyOutputStream.getContentLength:()I
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.setContentLength:(I)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljakarta/servlet/http/NoBodyResponse;
public void setContentLength(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.setContentLength:(I)V
1: aload 0
iconst_1
putfield jakarta.servlet.http.NoBodyResponse.didSetContentLength:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 len I
MethodParameters:
Name Flags
len
public void setContentLengthLong(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.setContentLengthLong:(J)V
1: aload 0
iconst_1
putfield jakarta.servlet.http.NoBodyResponse.didSetContentLength:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 len J
MethodParameters:
Name Flags
len
public void setHeader(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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
aload 1
aload 2
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual jakarta.servlet.http.NoBodyResponse.checkHeader:(Ljava/lang/String;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public void addHeader(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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
aload 1
aload 2
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual jakarta.servlet.http.NoBodyResponse.checkHeader:(Ljava/lang/String;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public void setIntHeader(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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
aload 1
iload 2
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.setIntHeader:(Ljava/lang/String;I)V
1: aload 0
aload 1
invokevirtual jakarta.servlet.http.NoBodyResponse.checkHeader:(Ljava/lang/String;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 name Ljava/lang/String;
0 3 2 value I
MethodParameters:
Name Flags
name
value
public void addIntHeader(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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
aload 1
iload 2
invokespecial jakarta.servlet.http.HttpServletResponseWrapper.addIntHeader:(Ljava/lang/String;I)V
1: aload 0
aload 1
invokevirtual jakarta.servlet.http.NoBodyResponse.checkHeader:(Ljava/lang/String;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 name Ljava/lang/String;
0 3 2 value I
MethodParameters:
Name Flags
name
value
private void checkHeader(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc "content-length"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_1
putfield jakarta.servlet.http.NoBodyResponse.didSetContentLength:Z
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/NoBodyResponse;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public jakarta.servlet.ServletOutputStream getOutputStream();
descriptor: ()Ljakarta/servlet/ServletOutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.NoBodyResponse.noBody:Ljakarta/servlet/http/NoBodyOutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/NoBodyResponse;
Exceptions:
throws java.io.IOException
public java.io.PrintWriter getWriter();
descriptor: ()Ljava/io/PrintWriter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.NoBodyResponse.writer:Ljava/io/PrintWriter;
ifnonnull 3
1: new java.io.OutputStreamWriter
dup
aload 0
getfield jakarta.servlet.http.NoBodyResponse.noBody:Ljakarta/servlet/http/NoBodyOutputStream;
aload 0
invokevirtual jakarta.servlet.http.NoBodyResponse.getCharacterEncoding:()Ljava/lang/String;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
astore 1
start local 1 2: aload 0
new java.io.PrintWriter
dup
aload 1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
putfield jakarta.servlet.http.NoBodyResponse.writer:Ljava/io/PrintWriter;
end local 1 3: StackMap locals:
StackMap stack:
aload 0
getfield jakarta.servlet.http.NoBodyResponse.writer:Ljava/io/PrintWriter;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljakarta/servlet/http/NoBodyResponse;
2 3 1 w Ljava/io/OutputStreamWriter;
Exceptions:
throws java.io.UnsupportedEncodingException
}
SourceFile: "HttpServlet.java"