class org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback 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 responseType;
    descriptor: Ljava/lang/reflect/Type;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    RuntimeVisibleAnnotations: 
      org.springframework.lang.Nullable()

  final org.springframework.web.client.RestTemplate this$0;
    descriptor: Lorg/springframework/web/client/RestTemplate;
    flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC

  public void <init>(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 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
        start local 2 // java.lang.reflect.Type responseType
         0: .line 839
            aload 0 /* this */
            aload 1
            putfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.this$0:Lorg/springframework/web/client/RestTemplate;
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 840
            aload 0 /* this */
            aload 2 /* responseType */
            putfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.responseType:Ljava/lang/reflect/Type;
         2: .line 841
            return
        end local 2 // java.lang.reflect.Type responseType
        end local 0 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
      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 doWithRequest(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 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
        start local 1 // org.springframework.http.client.ClientHttpRequest request
         0: .line 845
            aload 0 /* this */
            getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.responseType:Ljava/lang/reflect/Type;
            ifnull 11
         1: .line 846
            aload 0 /* this */
            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: .line 847
            aload 0 /* this */
            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: .line 848
            aload 0 /* this */
            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: .line 849
            invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
         5: .line 850
            getstatic org.springframework.http.MediaType.SPECIFICITY_COMPARATOR:Ljava/util/Comparator;
            invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)Ljava/util/stream/Stream;
         6: .line 851
            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: .line 846
            astore 2 /* allSupportedMediaTypes */
        start local 2 // java.util.List allSupportedMediaTypes
         8: .line 852
            aload 0 /* this */
            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: .line 853
            aload 0 /* this */
            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 /* allSupportedMediaTypes */
            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: .line 855
      StackMap locals: java.util.List
      StackMap stack:
            aload 1 /* request */
            invokeinterface org.springframework.http.client.ClientHttpRequest.getHeaders:()Lorg/springframework/http/HttpHeaders;
            aload 2 /* allSupportedMediaTypes */
            invokevirtual org.springframework.http.HttpHeaders.setAccept:(Ljava/util/List;)V
        end local 2 // java.util.List allSupportedMediaTypes
        11: .line 857
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.springframework.http.client.ClientHttpRequest request
        end local 0 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
      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 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
        start local 1 // java.lang.reflect.Type responseType
        start local 2 // org.springframework.http.converter.HttpMessageConverter converter
         0: .line 860
            aload 1 /* responseType */
            instanceof java.lang.Class
            ifeq 1
            aload 1 /* responseType */
            checkcast java.lang.Class
            goto 2
      StackMap locals:
      StackMap stack:
         1: aconst_null
      StackMap locals:
      StackMap stack: java.lang.Class
         2: astore 3 /* responseClass */
        start local 3 // java.lang.Class responseClass
         3: .line 861
            aload 3 /* responseClass */
            ifnull 5
         4: .line 862
            aload 2 /* converter */
            aload 3 /* responseClass */
            aconst_null
            invokeinterface org.springframework.http.converter.HttpMessageConverter.canRead:(Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
            ireturn
         5: .line 864
      StackMap locals: java.lang.Class
      StackMap stack:
            aload 2 /* converter */
            instanceof org.springframework.http.converter.GenericHttpMessageConverter
            ifeq 8
         6: .line 865
            aload 2 /* converter */
            checkcast org.springframework.http.converter.GenericHttpMessageConverter
            astore 4 /* genericConverter */
        start local 4 // org.springframework.http.converter.GenericHttpMessageConverter genericConverter
         7: .line 866
            aload 4 /* genericConverter */
            aload 1 /* responseType */
            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 // org.springframework.http.converter.GenericHttpMessageConverter genericConverter
         8: .line 868
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 3 // java.lang.Class responseClass
        end local 2 // org.springframework.http.converter.HttpMessageConverter converter
        end local 1 // java.lang.reflect.Type responseType
        end local 0 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
      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 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
        start local 1 // org.springframework.http.converter.HttpMessageConverter messageConverter
         0: .line 872
            aload 1 /* messageConverter */
            invokeinterface org.springframework.http.converter.HttpMessageConverter.getSupportedMediaTypes:()Ljava/util/List;
         1: .line 873
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
         2: .line 874
            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: .line 872
            areturn
        end local 1 // org.springframework.http.converter.HttpMessageConverter messageConverter
        end local 0 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
      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 lambda$0(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 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
        start local 1 // org.springframework.http.converter.HttpMessageConverter converter
         0: .line 847
            aload 0 /* this */
            aload 0 /* this */
            getfield org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.responseType:Ljava/lang/reflect/Type;
            aload 1 /* converter */
            invokevirtual org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.canReadResponse:(Ljava/lang/reflect/Type;Lorg/springframework/http/converter/HttpMessageConverter;)Z
            ireturn
        end local 1 // org.springframework.http.converter.HttpMessageConverter converter
        end local 0 // org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback this
      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 lambda$2(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 // org.springframework.http.MediaType mediaType
         0: .line 875
            aload 0 /* mediaType */
            invokevirtual org.springframework.http.MediaType.getCharset:()Ljava/nio/charset/Charset;
            ifnull 2
         1: .line 876
            new org.springframework.http.MediaType
            dup
            aload 0 /* mediaType */
            invokevirtual org.springframework.http.MediaType.getType:()Ljava/lang/String;
            aload 0 /* mediaType */
            invokevirtual org.springframework.http.MediaType.getSubtype:()Ljava/lang/String;
            invokespecial org.springframework.http.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;)V
            areturn
         2: .line 878
      StackMap locals:
      StackMap stack:
            aload 0 /* mediaType */
            areturn
        end local 0 // org.springframework.http.MediaType mediaType
      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