final class org.springframework.http.client.SimpleBufferingClientHttpRequest extends org.springframework.http.client.AbstractBufferingClientHttpRequest
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.http.client.SimpleBufferingClientHttpRequest
super_class: org.springframework.http.client.AbstractBufferingClientHttpRequest
{
private final java.net.HttpURLConnection connection;
descriptor: Ljava/net/HttpURLConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean outputStreaming;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.net.HttpURLConnection, boolean);
descriptor: (Ljava/net/HttpURLConnection;Z)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.springframework.http.client.AbstractBufferingClientHttpRequest.<init>:()V
1: aload 0
aload 1
putfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
2: aload 0
iload 2
putfield org.springframework.http.client.SimpleBufferingClientHttpRequest.outputStreaming:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/SimpleBufferingClientHttpRequest;
0 4 1 connection Ljava/net/HttpURLConnection;
0 4 2 outputStreaming Z
MethodParameters:
Name Flags
connection
outputStreaming
public java.lang.String getMethodValue();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getRequestMethod:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/SimpleBufferingClientHttpRequest;
public java.net.URI getURI();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
1: areturn
2: StackMap locals:
StackMap stack: java.net.URISyntaxException
astore 1
start local 1 3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not get HttpURLConnection URI: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.net.URISyntaxException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/SimpleBufferingClientHttpRequest;
3 4 1 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
0 1 2 Class java.net.URISyntaxException
protected org.springframework.http.client.ClientHttpResponse (org.springframework.http.HttpHeaders, byte[]);
descriptor: (Lorg/springframework/http/HttpHeaders;[B)Lorg/springframework/http/client/ClientHttpResponse;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
aload 1
invokestatic org.springframework.http.client.SimpleBufferingClientHttpRequest.addHeaders:(Ljava/net/HttpURLConnection;Lorg/springframework/http/HttpHeaders;)V
1: aload 0
invokevirtual org.springframework.http.client.SimpleBufferingClientHttpRequest.getMethod:()Lorg/springframework/http/HttpMethod;
getstatic org.springframework.http.HttpMethod.DELETE:Lorg/springframework/http/HttpMethod;
if_acmpne 3
aload 2
arraylength
ifne 3
2: aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
iconst_0
invokevirtual java.net.HttpURLConnection.setDoOutput:(Z)V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getDoOutput:()Z
ifeq 5
aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.outputStreaming:Z
ifeq 5
4: aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
aload 2
arraylength
invokevirtual java.net.HttpURLConnection.setFixedLengthStreamingMode:(I)V
5: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.connect:()V
6: aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getDoOutput:()Z
ifeq 9
7: aload 2
aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getOutputStream:()Ljava/io/OutputStream;
invokestatic org.springframework.util.FileCopyUtils.copy:([BLjava/io/OutputStream;)V
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
pop
10: StackMap locals:
StackMap stack:
new org.springframework.http.client.SimpleClientHttpResponse
dup
aload 0
getfield org.springframework.http.client.SimpleBufferingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokespecial org.springframework.http.client.SimpleClientHttpResponse.<init>:(Ljava/net/HttpURLConnection;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/http/client/SimpleBufferingClientHttpRequest;
0 11 1 headers Lorg/springframework/http/HttpHeaders;
0 11 2 bufferedOutput [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
headers
bufferedOutput
static void (java.net.HttpURLConnection, org.springframework.http.HttpHeaders);
descriptor: (Ljava/net/HttpURLConnection;Lorg/springframework/http/HttpHeaders;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokedynamic accept(Ljava/net/HttpURLConnection;)Ljava/util/function/BiConsumer;
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;)V
org/springframework/http/client/SimpleBufferingClientHttpRequest.lambda$0(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/util/List;)V (6)
(Ljava/lang/String;Ljava/util/List;)V
invokevirtual org.springframework.http.HttpHeaders.forEach:(Ljava/util/function/BiConsumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 connection Ljava/net/HttpURLConnection;
0 2 1 headers Lorg/springframework/http/HttpHeaders;
MethodParameters:
Name Flags
connection
headers
private static void lambda$0(java.net.HttpURLConnection, java.lang.String, java.util.List);
descriptor: (Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/util/List;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=6, args_size=3
start local 1 start local 2 0: ldc "Cookie"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
1: aload 2
ldc "; "
invokestatic org.springframework.util.StringUtils.collectionToDelimitedString:(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 0
aload 1
aload 3
invokevirtual java.net.HttpURLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
end local 3 3: goto 11
4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 10
StackMap locals: java.net.HttpURLConnection java.lang.String java.util.List top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
ifnull 7
aload 3
goto 8
StackMap locals: java.net.HttpURLConnection java.lang.String java.util.List java.lang.String java.util.Iterator
StackMap stack:
7: ldc ""
StackMap locals:
StackMap stack: java.lang.String
8: astore 5
start local 5 9: aload 0
aload 1
aload 5
invokevirtual java.net.HttpURLConnection.addRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 end local 3 10: StackMap locals: java.net.HttpURLConnection java.lang.String java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
11: StackMap locals: java.net.HttpURLConnection java.lang.String java.util.List
StackMap stack:
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 12 1 headerName Ljava/lang/String;
0 12 2 headerValues Ljava/util/List<Ljava/lang/String;>;
2 3 3 headerValue Ljava/lang/String;
6 10 3 headerValue Ljava/lang/String;
9 10 5 actualHeaderValue Ljava/lang/String;
}
SourceFile: "SimpleBufferingClientHttpRequest.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles