public class org.springframework.web.client.DefaultResponseErrorHandler implements org.springframework.web.client.ResponseErrorHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.client.DefaultResponseErrorHandler
super_class: java.lang.Object
{
private static volatile int[] $SWITCH_TABLE$org$springframework$http$HttpStatus$Series;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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/client/DefaultResponseErrorHandler;
public boolean hasError(org.springframework.http.client.ClientHttpResponse);
descriptor: (Lorg/springframework/http/client/ClientHttpResponse;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getRawStatusCode:()I
istore 2
start local 2 1: iload 2
invokestatic org.springframework.http.HttpStatus.resolve:(I)Lorg/springframework/http/HttpStatus;
astore 3
start local 3 2: aload 3
ifnull 3
aload 0
aload 3
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.hasError:(Lorg/springframework/http/HttpStatus;)Z
goto 4
StackMap locals: int org.springframework.http.HttpStatus
StackMap stack:
3: aload 0
iload 2
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.hasError:(I)Z
StackMap locals:
StackMap stack: int
4: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 5 1 response Lorg/springframework/http/client/ClientHttpResponse;
1 5 2 rawStatusCode I
2 5 3 statusCode Lorg/springframework/http/HttpStatus;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
response
protected boolean hasError(org.springframework.http.HttpStatus);
descriptor: (Lorg/springframework/http/HttpStatus;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.springframework.http.HttpStatus.isError:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 1 1 statusCode Lorg/springframework/http/HttpStatus;
MethodParameters:
Name Flags
statusCode
protected boolean hasError(int);
descriptor: (I)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.springframework.http.HttpStatus$Series.resolve:(I)Lorg/springframework/http/HttpStatus$Series;
astore 2
start local 2 1: aload 2
getstatic org.springframework.http.HttpStatus$Series.CLIENT_ERROR:Lorg/springframework/http/HttpStatus$Series;
if_acmpeq 2
aload 2
getstatic org.springframework.http.HttpStatus$Series.SERVER_ERROR:Lorg/springframework/http/HttpStatus$Series;
if_acmpeq 2
iconst_0
ireturn
StackMap locals: org.springframework.http.HttpStatus$Series
StackMap stack:
2: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 3 1 unknownStatusCode I
1 3 2 series Lorg/springframework/http/HttpStatus$Series;
MethodParameters:
Name Flags
unknownStatusCode
public void handleError(org.springframework.http.client.ClientHttpResponse);
descriptor: (Lorg/springframework/http/client/ClientHttpResponse;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getRawStatusCode:()I
invokestatic org.springframework.http.HttpStatus.resolve:(I)Lorg/springframework/http/HttpStatus;
astore 2
start local 2 1: aload 2
ifnonnull 5
2: new org.springframework.web.client.UnknownHttpStatusCodeException
dup
aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getRawStatusCode:()I
aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getStatusText:()Ljava/lang/String;
3: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getHeaders:()Lorg/springframework/http/HttpHeaders;
aload 0
aload 1
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.getResponseBody:(Lorg/springframework/http/client/ClientHttpResponse;)[B
aload 0
aload 1
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.getCharset:(Lorg/springframework/http/client/ClientHttpResponse;)Ljava/nio/charset/Charset;
4: invokespecial org.springframework.web.client.UnknownHttpStatusCodeException.<init>:(ILjava/lang/String;Lorg/springframework/http/HttpHeaders;[BLjava/nio/charset/Charset;)V
athrow
5: StackMap locals: org.springframework.http.HttpStatus
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.handleError:(Lorg/springframework/http/client/ClientHttpResponse;Lorg/springframework/http/HttpStatus;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 7 1 response Lorg/springframework/http/client/ClientHttpResponse;
1 7 2 statusCode Lorg/springframework/http/HttpStatus;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
response
protected void handleError(org.springframework.http.client.ClientHttpResponse, org.springframework.http.HttpStatus);
descriptor: (Lorg/springframework/http/client/ClientHttpResponse;Lorg/springframework/http/HttpStatus;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getStatusText:()Ljava/lang/String;
astore 3
start local 3 1: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getHeaders:()Lorg/springframework/http/HttpHeaders;
astore 4
start local 4 2: aload 0
aload 1
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.getResponseBody:(Lorg/springframework/http/client/ClientHttpResponse;)[B
astore 5
start local 5 3: aload 0
aload 1
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.getCharset:(Lorg/springframework/http/client/ClientHttpResponse;)Ljava/nio/charset/Charset;
astore 6
start local 6 4: invokestatic org.springframework.web.client.DefaultResponseErrorHandler.$SWITCH_TABLE$org$springframework$http$HttpStatus$Series:()[I
aload 2
invokevirtual org.springframework.http.HttpStatus.series:()Lorg/springframework/http/HttpStatus$Series;
invokevirtual org.springframework.http.HttpStatus$Series.ordinal:()I
iaload
tableswitch { // 4 - 5
4: 5
5: 6
default: 7
}
5: StackMap locals: org.springframework.web.client.DefaultResponseErrorHandler org.springframework.http.client.ClientHttpResponse org.springframework.http.HttpStatus java.lang.String org.springframework.http.HttpHeaders byte[] java.nio.charset.Charset
StackMap stack:
aload 2
aload 3
aload 4
aload 5
aload 6
invokestatic org.springframework.web.client.HttpClientErrorException.create:(Lorg/springframework/http/HttpStatus;Ljava/lang/String;Lorg/springframework/http/HttpHeaders;[BLjava/nio/charset/Charset;)Lorg/springframework/web/client/HttpClientErrorException;
athrow
6: StackMap locals:
StackMap stack:
aload 2
aload 3
aload 4
aload 5
aload 6
invokestatic org.springframework.web.client.HttpServerErrorException.create:(Lorg/springframework/http/HttpStatus;Ljava/lang/String;Lorg/springframework/http/HttpHeaders;[BLjava/nio/charset/Charset;)Lorg/springframework/web/client/HttpServerErrorException;
athrow
7: StackMap locals:
StackMap stack:
new org.springframework.web.client.UnknownHttpStatusCodeException
dup
aload 2
invokevirtual org.springframework.http.HttpStatus.value:()I
aload 3
aload 4
aload 5
aload 6
invokespecial org.springframework.web.client.UnknownHttpStatusCodeException.<init>:(ILjava/lang/String;Lorg/springframework/http/HttpHeaders;[BLjava/nio/charset/Charset;)V
athrow
end local 6 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 8 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 8 1 response Lorg/springframework/http/client/ClientHttpResponse;
0 8 2 statusCode Lorg/springframework/http/HttpStatus;
1 8 3 statusText Ljava/lang/String;
2 8 4 headers Lorg/springframework/http/HttpHeaders;
3 8 5 body [B
4 8 6 charset Ljava/nio/charset/Charset;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
response
statusCode
protected org.springframework.http.HttpStatus getHttpStatusCode(org.springframework.http.client.ClientHttpResponse);
descriptor: (Lorg/springframework/http/client/ClientHttpResponse;)Lorg/springframework/http/HttpStatus;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getRawStatusCode:()I
invokestatic org.springframework.http.HttpStatus.resolve:(I)Lorg/springframework/http/HttpStatus;
astore 2
start local 2 1: aload 2
ifnonnull 5
2: new org.springframework.web.client.UnknownHttpStatusCodeException
dup
aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getRawStatusCode:()I
aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getStatusText:()Ljava/lang/String;
3: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getHeaders:()Lorg/springframework/http/HttpHeaders;
aload 0
aload 1
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.getResponseBody:(Lorg/springframework/http/client/ClientHttpResponse;)[B
aload 0
aload 1
invokevirtual org.springframework.web.client.DefaultResponseErrorHandler.getCharset:(Lorg/springframework/http/client/ClientHttpResponse;)Ljava/nio/charset/Charset;
4: invokespecial org.springframework.web.client.UnknownHttpStatusCodeException.<init>:(ILjava/lang/String;Lorg/springframework/http/HttpHeaders;[BLjava/nio/charset/Charset;)V
athrow
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/client/DefaultResponseErrorHandler;
0 6 1 response Lorg/springframework/http/client/ClientHttpResponse;
1 6 2 statusCode Lorg/springframework/http/HttpStatus;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
response
protected byte[] getResponseBody(org.springframework.http.client.ClientHttpResponse);
descriptor: (Lorg/springframework/http/client/ClientHttpResponse;)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getBody:()Ljava/io/InputStream;
invokestatic org.springframework.util.FileCopyUtils.copyToByteArray:(Ljava/io/InputStream;)[B
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: iconst_0
newarray 8
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 4 1 response Lorg/springframework/http/client/ClientHttpResponse;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
response
protected java.nio.charset.Charset getCharset(org.springframework.http.client.ClientHttpResponse);
descriptor: (Lorg/springframework/http/client/ClientHttpResponse;)Ljava/nio/charset/Charset;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.http.client.ClientHttpResponse.getHeaders:()Lorg/springframework/http/HttpHeaders;
astore 2
start local 2 1: aload 2
invokevirtual org.springframework.http.HttpHeaders.getContentType:()Lorg/springframework/http/MediaType;
astore 3
start local 3 2: aload 3
ifnull 3
aload 3
invokevirtual org.springframework.http.MediaType.getCharset:()Ljava/nio/charset/Charset;
goto 4
StackMap locals: org.springframework.http.HttpHeaders org.springframework.http.MediaType
StackMap stack:
3: aconst_null
StackMap locals:
StackMap stack: java.nio.charset.Charset
4: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/client/DefaultResponseErrorHandler;
0 5 1 response Lorg/springframework/http/client/ClientHttpResponse;
1 5 2 headers Lorg/springframework/http/HttpHeaders;
2 5 3 contentType Lorg/springframework/http/MediaType;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
response
static int[] $SWITCH_TABLE$org$springframework$http$HttpStatus$Series();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.springframework.web.client.DefaultResponseErrorHandler.$SWITCH_TABLE$org$springframework$http$HttpStatus$Series:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.springframework.http.HttpStatus$Series.values:()[Lorg/springframework/http/HttpStatus$Series;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.springframework.http.HttpStatus$Series.CLIENT_ERROR:Lorg/springframework/http/HttpStatus$Series;
invokevirtual org.springframework.http.HttpStatus$Series.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.springframework.http.HttpStatus$Series.INFORMATIONAL:Lorg/springframework/http/HttpStatus$Series;
invokevirtual org.springframework.http.HttpStatus$Series.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.springframework.http.HttpStatus$Series.REDIRECTION:Lorg/springframework/http/HttpStatus$Series;
invokevirtual org.springframework.http.HttpStatus$Series.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.springframework.http.HttpStatus$Series.SERVER_ERROR:Lorg/springframework/http/HttpStatus$Series;
invokevirtual org.springframework.http.HttpStatus$Series.ordinal:()I
iconst_5
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.springframework.http.HttpStatus$Series.SUCCESSFUL:Lorg/springframework/http/HttpStatus$Series;
invokevirtual org.springframework.http.HttpStatus$Series.ordinal:()I
iconst_2
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic org.springframework.web.client.DefaultResponseErrorHandler.$SWITCH_TABLE$org$springframework$http$HttpStatus$Series:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
}
SourceFile: "DefaultResponseErrorHandler.java"
InnerClasses:
public final Series = org.springframework.http.HttpStatus$Series of org.springframework.http.HttpStatus