class implements org.springframework.web.client.RequestCallback
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback
super_class: java.lang.Object
{
private final java.lang.reflect.Type ;
descriptor: Ljava/lang/reflect/Type;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
final org.springframework.web.client.RestTemplate ;
descriptor: Lorg/springframework/web/client/RestTemplate;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void (org.springframework.web.client.RestTemplate, java.lang.reflect.Type);
descriptor: (Lorg/springframework/web/client/RestTemplate;Ljava/lang/reflect/Type;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.this$0:Lorg/springframework/web/client/RestTemplate;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.responseType:Ljava/lang/reflect/Type;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;
0 3 2 responseType Ljava/lang/reflect/Type;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
this$0 final
responseType
public void (org.springframework.http.client.ClientHttpRequest);
descriptor: (Lorg/springframework/http/client/ClientHttpRequest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.responseType:Ljava/lang/reflect/Type;
ifnull 11
1: aload 0
getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.this$0:Lorg/springframework/web/client/RestTemplate;
invokevirtual org.springframework.web.client.RestTemplate.getMessageConverters:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
2: aload 0
invokedynamic test(Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback.lambda$0(Lorg/springframework/http/converter/HttpMessageConverter;)Z (7)
(Lorg/springframework/http/converter/HttpMessageConverter;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: aload 0
invokedynamic apply(Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback.getSupportedMediaTypes(Lorg/springframework/http/converter/HttpMessageConverter;)Ljava/util/stream/Stream; (7)
(Lorg/springframework/http/converter/HttpMessageConverter;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
5: getstatic org.springframework.http.MediaType.SPECIFICITY_COMPARATOR:Ljava/util/Comparator;
invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)Ljava/util/stream/Stream;
6: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
7: astore 2
start local 2 8: aload 0
getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.this$0:Lorg/springframework/web/client/RestTemplate;
invokestatic org.springframework.web.client.RestTemplate.access$0:(Lorg/springframework/web/client/RestTemplate;)Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 10
9: aload 0
getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.this$0:Lorg/springframework/web/client/RestTemplate;
invokestatic org.springframework.web.client.RestTemplate.access$0:(Lorg/springframework/web/client/RestTemplate;)Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Accept="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
10: StackMap locals: java.util.List
StackMap stack:
aload 1
invokeinterface org.springframework.http.client.ClientHttpRequest.getHeaders:()Lorg/springframework/http/HttpHeaders;
aload 2
invokevirtual org.springframework.http.HttpHeaders.setAccept:(Ljava/util/List;)V
end local 2 11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;
0 12 1 request Lorg/springframework/http/client/ClientHttpRequest;
8 11 2 allSupportedMediaTypes Ljava/util/List<Lorg/springframework/http/MediaType;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
request
private boolean canReadResponse(java.lang.reflect.Type, org.springframework.http.converter.HttpMessageConverter<?>);
descriptor: (Ljava/lang/reflect/Type;Lorg/springframework/http/converter/HttpMessageConverter;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof java.lang.Class
ifeq 1
aload 1
checkcast java.lang.Class
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: java.lang.Class
2: astore 3
start local 3 3: aload 3
ifnull 5
4: aload 2
aload 3
aconst_null
invokeinterface org.springframework.http.converter.HttpMessageConverter.canRead:(Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
ireturn
5: StackMap locals: java.lang.Class
StackMap stack:
aload 2
instanceof org.springframework.http.converter.GenericHttpMessageConverter
ifeq 8
6: aload 2
checkcast org.springframework.http.converter.GenericHttpMessageConverter
astore 4
start local 4 7: aload 4
aload 1
aconst_null
aconst_null
invokeinterface org.springframework.http.converter.GenericHttpMessageConverter.canRead:(Ljava/lang/reflect/Type;Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
ireturn
end local 4 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;
0 9 1 responseType Ljava/lang/reflect/Type;
0 9 2 converter Lorg/springframework/http/converter/HttpMessageConverter<*>;
3 9 3 responseClass Ljava/lang/Class<*>;
7 8 4 genericConverter Lorg/springframework/http/converter/GenericHttpMessageConverter<*>;
Signature: (Ljava/lang/reflect/Type;Lorg/springframework/http/converter/HttpMessageConverter<*>;)Z
MethodParameters:
Name Flags
responseType
converter
private java.util.stream.Stream<org.springframework.http.MediaType> getSupportedMediaTypes(org.springframework.http.converter.HttpMessageConverter<?>);
descriptor: (Lorg/springframework/http/converter/HttpMessageConverter;)Ljava/util/stream/Stream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.http.converter.HttpMessageConverter.getSupportedMediaTypes:()Ljava/util/List;
1: invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback.lambda$2(Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType; (6)
(Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;
0 4 1 messageConverter Lorg/springframework/http/converter/HttpMessageConverter<*>;
Signature: (Lorg/springframework/http/converter/HttpMessageConverter<*>;)Ljava/util/stream/Stream<Lorg/springframework/http/MediaType;>;
MethodParameters:
Name Flags
messageConverter
private boolean (org.springframework.http.converter.HttpMessageConverter);
descriptor: (Lorg/springframework/http/converter/HttpMessageConverter;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.responseType:Ljava/lang/reflect/Type;
aload 1
invokevirtual org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.canReadResponse:(Ljava/lang/reflect/Type;Lorg/springframework/http/converter/HttpMessageConverter;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/client/RestTemplate$AcceptHeaderRequestCallback;
0 1 1 converter Lorg/springframework/http/converter/HttpMessageConverter<*>;
private static org.springframework.http.MediaType (org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.http.MediaType.getCharset:()Ljava/nio/charset/Charset;
ifnull 2
1: new org.springframework.http.MediaType
dup
aload 0
invokevirtual org.springframework.http.MediaType.getType:()Ljava/lang/String;
aload 0
invokevirtual org.springframework.http.MediaType.getSubtype:()Ljava/lang/String;
invokespecial org.springframework.http.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 mediaType Lorg/springframework/http/MediaType;
}
SourceFile: "RestTemplate.java"
NestHost: org.springframework.web.client.RestTemplate
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private AcceptHeaderRequestCallback = org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback of org.springframework.web.client.RestTemplate