public class org.springframework.web.server.handler.ResponseStatusExceptionHandler implements org.springframework.web.server.WebExceptionHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.server.handler.ResponseStatusExceptionHandler
super_class: java.lang.Object
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.apache.commons.logging.Log warnLogger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.web.server.handler.ResponseStatusExceptionHandler.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
public void setWarnLogCategory(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/String;)Lorg/apache/commons/logging/Log;
putfield org.springframework.web.server.handler.ResponseStatusExceptionHandler.warnLogger:Lorg/apache/commons/logging/Log;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
0 2 1 loggerName Ljava/lang/String;
MethodParameters:
Name Flags
loggerName
public reactor.core.publisher.Mono<java.lang.Void> handle(org.springframework.web.server.ServerWebExchange, java.lang.Throwable);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/Throwable;)Lreactor/core/publisher/Mono;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.springframework.web.server.handler.ResponseStatusExceptionHandler.resolveStatus:(Ljava/lang/Throwable;)Lorg/springframework/http/HttpStatus;
astore 3
start local 3 1: aload 3
ifnull 2
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getResponse:()Lorg/springframework/http/server/reactive/ServerHttpResponse;
aload 3
invokeinterface org.springframework.http.server.reactive.ServerHttpResponse.setStatusCode:(Lorg/springframework/http/HttpStatus;)Z
ifne 3
2: StackMap locals: org.springframework.http.HttpStatus
StackMap stack:
aload 2
invokestatic reactor.core.publisher.Mono.error:(Ljava/lang/Throwable;)Lreactor/core/publisher/Mono;
areturn
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getLogPrefix:()Ljava/lang/String;
astore 4
start local 4 4: aload 0
getfield org.springframework.web.server.handler.ResponseStatusExceptionHandler.warnLogger:Lorg/apache/commons/logging/Log;
ifnull 7
aload 0
getfield org.springframework.web.server.handler.ResponseStatusExceptionHandler.warnLogger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isWarnEnabled:()Z
ifeq 7
5: aload 0
getfield org.springframework.web.server.handler.ResponseStatusExceptionHandler.warnLogger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
aload 2
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getRequest:()Lorg/springframework/http/server/reactive/ServerHttpRequest;
invokevirtual org.springframework.web.server.handler.ResponseStatusExceptionHandler.formatError:(Ljava/lang/Throwable;Lorg/springframework/http/server/reactive/ServerHttpRequest;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
6: goto 9
7: StackMap locals: java.lang.String
StackMap stack:
getstatic org.springframework.web.server.handler.ResponseStatusExceptionHandler.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 9
8: getstatic org.springframework.web.server.handler.ResponseStatusExceptionHandler.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
aload 2
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getRequest:()Lorg/springframework/http/server/reactive/ServerHttpRequest;
invokevirtual org.springframework.web.server.handler.ResponseStatusExceptionHandler.formatError:(Ljava/lang/Throwable;Lorg/springframework/http/server/reactive/ServerHttpRequest;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getResponse:()Lorg/springframework/http/server/reactive/ServerHttpResponse;
invokeinterface org.springframework.http.server.reactive.ServerHttpResponse.setComplete:()Lreactor/core/publisher/Mono;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
0 10 1 exchange Lorg/springframework/web/server/ServerWebExchange;
0 10 2 ex Ljava/lang/Throwable;
1 10 3 status Lorg/springframework/http/HttpStatus;
4 10 4 logPrefix Ljava/lang/String;
Signature: (Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/Throwable;)Lreactor/core/publisher/Mono<Ljava/lang/Void;>;
MethodParameters:
Name Flags
exchange
ex
private java.lang.String formatError(java.lang.Throwable, org.springframework.http.server.reactive.ServerHttpRequest);
descriptor: (Ljava/lang/Throwable;Lorg/springframework/http/server/reactive/ServerHttpRequest;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 2
invokeinterface org.springframework.http.server.reactive.ServerHttpRequest.getURI:()Ljava/net/URI;
invokevirtual java.net.URI.getRawPath:()Ljava/lang/String;
astore 4
start local 4 2: new java.lang.StringBuilder
dup
ldc "Resolved ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] for HTTP "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokeinterface org.springframework.http.server.reactive.ServerHttpRequest.getMethod:()Lorg/springframework/http/HttpMethod;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
0 3 1 ex Ljava/lang/Throwable;
0 3 2 request Lorg/springframework/http/server/reactive/ServerHttpRequest;
1 3 3 reason Ljava/lang/String;
2 3 4 path Ljava/lang/String;
MethodParameters:
Name Flags
ex
request
private org.springframework.http.HttpStatus resolveStatus(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lorg/springframework/http/HttpStatus;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.web.server.handler.ResponseStatusExceptionHandler.determineStatus:(Ljava/lang/Throwable;)Lorg/springframework/http/HttpStatus;
astore 2
start local 2 1: aload 2
ifnonnull 5
2: aload 1
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 0
aload 3
invokevirtual org.springframework.web.server.handler.ResponseStatusExceptionHandler.resolveStatus:(Ljava/lang/Throwable;)Lorg/springframework/http/HttpStatus;
astore 2
end local 3 5: StackMap locals: org.springframework.http.HttpStatus
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
0 6 1 ex Ljava/lang/Throwable;
1 6 2 status Lorg/springframework/http/HttpStatus;
3 5 3 cause Ljava/lang/Throwable;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
ex
protected org.springframework.http.HttpStatus determineStatus(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lorg/springframework/http/HttpStatus;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.springframework.web.server.ResponseStatusException
ifeq 2
1: aload 1
checkcast org.springframework.web.server.ResponseStatusException
invokevirtual org.springframework.web.server.ResponseStatusException.getStatus:()Lorg/springframework/http/HttpStatus;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/handler/ResponseStatusExceptionHandler;
0 3 1 ex Ljava/lang/Throwable;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
ex
}
SourceFile: "ResponseStatusExceptionHandler.java"