final class org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse extends org.springframework.http.server.reactive.ServletServerHttpResponse
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse
super_class: org.springframework.http.server.reactive.ServletServerHttpResponse
{
private static final java.lang.reflect.Field COYOTE_RESPONSE_FIELD;
descriptor: Ljava/lang/reflect/Field;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lorg/apache/catalina/connector/ResponseFacade;
ldc "response"
invokestatic org.springframework.util.ReflectionUtils.findField:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 1: aload 0
ifnull 2
iconst_1
goto 3
StackMap locals: java.lang.reflect.Field
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "Incompatible Tomcat implementation"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
4: aload 0
invokestatic org.springframework.util.ReflectionUtils.makeAccessible:(Ljava/lang/reflect/Field;)V
5: aload 0
putstatic org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse.COYOTE_RESPONSE_FIELD:Ljava/lang/reflect/Field;
end local 0 6: return
LocalVariableTable:
Start End Slot Name Signature
1 6 0 field Ljava/lang/reflect/Field;
void <init>(javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext, org.springframework.core.io.buffer.DataBufferFactory, int, org.springframework.http.server.reactive.ServletServerHttpRequest);
descriptor: (Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/AsyncContext;Lorg/springframework/core/io/buffer/DataBufferFactory;ILorg/springframework/http/server/reactive/ServletServerHttpRequest;)V
flags: (0x0000)
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
invokestatic org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse.createTomcatHttpHeaders:(Ljavax/servlet/http/HttpServletResponse;)Lorg/springframework/http/HttpHeaders;
aload 1
aload 2
aload 3
iload 4
aload 5
invokespecial org.springframework.http.server.reactive.ServletServerHttpResponse.<init>:(Lorg/springframework/http/HttpHeaders;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/AsyncContext;Lorg/springframework/core/io/buffer/DataBufferFactory;ILorg/springframework/http/server/reactive/ServletServerHttpRequest;)V
1: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/server/reactive/TomcatHttpHandlerAdapter$TomcatServerHttpResponse;
0 2 1 response Ljavax/servlet/http/HttpServletResponse;
0 2 2 context Ljavax/servlet/AsyncContext;
0 2 3 factory Lorg/springframework/core/io/buffer/DataBufferFactory;
0 2 4 bufferSize I
0 2 5 request Lorg/springframework/http/server/reactive/ServletServerHttpRequest;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
response
context
factory
bufferSize
request
private static org.springframework.http.HttpHeaders createTomcatHttpHeaders(javax.servlet.http.HttpServletResponse);
descriptor: (Ljavax/servlet/http/HttpServletResponse;)Lorg/springframework/http/HttpHeaders;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse.getResponseFacade:(Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/catalina/connector/ResponseFacade;
astore 1
start local 1 1: getstatic org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse.COYOTE_RESPONSE_FIELD:Ljava/lang/reflect/Field;
aload 1
invokestatic org.springframework.util.ReflectionUtils.getField:(Ljava/lang/reflect/Field;Ljava/lang/Object;)Ljava/lang/Object;
2: checkcast org.apache.catalina.connector.Response
astore 2
start local 2 3: aload 2
ifnull 4
iconst_1
goto 5
StackMap locals: org.apache.catalina.connector.ResponseFacade org.apache.catalina.connector.Response
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ldc "No Tomcat connector response"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
6: aload 2
invokevirtual org.apache.catalina.connector.Response.getCoyoteResponse:()Lorg/apache/coyote/Response;
astore 3
start local 3 7: new org.springframework.http.server.reactive.TomcatHeadersAdapter
dup
aload 3
invokevirtual org.apache.coyote.Response.getMimeHeaders:()Lorg/apache/tomcat/util/http/MimeHeaders;
invokespecial org.springframework.http.server.reactive.TomcatHeadersAdapter.<init>:(Lorg/apache/tomcat/util/http/MimeHeaders;)V
astore 4
start local 4 8: new org.springframework.http.HttpHeaders
dup
aload 4
invokespecial org.springframework.http.HttpHeaders.<init>:(Lorg/springframework/util/MultiValueMap;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 response Ljavax/servlet/http/HttpServletResponse;
1 9 1 responseFacade Lorg/apache/catalina/connector/ResponseFacade;
3 9 2 connectorResponse Lorg/apache/catalina/connector/Response;
7 9 3 tomcatResponse Lorg/apache/coyote/Response;
8 9 4 headers Lorg/springframework/http/server/reactive/TomcatHeadersAdapter;
MethodParameters:
Name Flags
response
private static org.apache.catalina.connector.ResponseFacade getResponseFacade(javax.servlet.http.HttpServletResponse);
descriptor: (Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/catalina/connector/ResponseFacade;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
instanceof org.apache.catalina.connector.ResponseFacade
ifeq 2
1: aload 0
checkcast org.apache.catalina.connector.ResponseFacade
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof javax.servlet.http.HttpServletResponseWrapper
ifeq 6
3: aload 0
checkcast javax.servlet.http.HttpServletResponseWrapper
astore 1
start local 1 4: aload 1
invokevirtual javax.servlet.http.HttpServletResponseWrapper.getResponse:()Ljavax/servlet/ServletResponse;
checkcast javax.servlet.http.HttpServletResponse
astore 2
start local 2 5: aload 2
invokestatic org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse.getResponseFacade:(Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/catalina/connector/ResponseFacade;
areturn
end local 2 end local 1 6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Cannot convert ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
7: ldc "] to org.apache.catalina.connector.ResponseFacade"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 response Ljavax/servlet/http/HttpServletResponse;
4 6 1 wrapper Ljavax/servlet/http/HttpServletResponseWrapper;
5 6 2 wrappedResponse Ljavax/servlet/http/HttpServletResponse;
MethodParameters:
Name Flags
response
protected void applyHeaders();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tThe method setContentLengthLong(long) is undefined for the type HttpServletResponse\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/TomcatHttpHandlerAdapter$TomcatServerHttpResponse;
protected int writeToOutputStream(org.springframework.core.io.buffer.DataBuffer);
descriptor: (Lorg/springframework/core/io/buffer/DataBuffer;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.core.io.buffer.DataBuffer.asByteBuffer:()Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 3
start local 3 2: aload 0
invokevirtual org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse.getNativeResponse:()Ljava/lang/Object;
checkcast javax.servlet.ServletResponse
astore 4
start local 4 3: aload 4
invokeinterface javax.servlet.ServletResponse.getOutputStream:()Ljavax/servlet/ServletOutputStream;
checkcast org.apache.catalina.connector.CoyoteOutputStream
aload 2
invokevirtual org.apache.catalina.connector.CoyoteOutputStream.write:(Ljava/nio/ByteBuffer;)V
4: iload 3
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/server/reactive/TomcatHttpHandlerAdapter$TomcatServerHttpResponse;
0 5 1 dataBuffer Lorg/springframework/core/io/buffer/DataBuffer;
1 5 2 input Ljava/nio/ByteBuffer;
2 5 3 len I
3 5 4 response Ljavax/servlet/ServletResponse;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dataBuffer
}
SourceFile: "TomcatHttpHandlerAdapter.java"
NestHost: org.springframework.http.server.reactive.TomcatHttpHandlerAdapter
InnerClasses:
private final TomcatServerHttpResponse = org.springframework.http.server.reactive.TomcatHttpHandlerAdapter$TomcatServerHttpResponse of org.springframework.http.server.reactive.TomcatHttpHandlerAdapter