final class org.springframework.http.client.SimpleStreamingClientHttpRequest extends org.springframework.http.client.AbstractClientHttpRequest
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.http.client.SimpleStreamingClientHttpRequest
super_class: org.springframework.http.client.AbstractClientHttpRequest
{
private final java.net.HttpURLConnection connection;
descriptor: Ljava/net/HttpURLConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int chunkSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.io.OutputStream body;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final boolean outputStreaming;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.net.HttpURLConnection, int, boolean);
descriptor: (Ljava/net/HttpURLConnection;IZ)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial org.springframework.http.client.AbstractClientHttpRequest.<init>:()V
1: aload 0
aload 1
putfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
2: aload 0
iload 2
putfield org.springframework.http.client.SimpleStreamingClientHttpRequest.chunkSize:I
3: aload 0
iload 3
putfield org.springframework.http.client.SimpleStreamingClientHttpRequest.outputStreaming:Z
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/client/SimpleStreamingClientHttpRequest;
0 5 1 connection Ljava/net/HttpURLConnection;
0 5 2 chunkSize I
0 5 3 outputStreaming Z
MethodParameters:
Name Flags
connection
chunkSize
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.SimpleStreamingClientHttpRequest.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/SimpleStreamingClientHttpRequest;
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.SimpleStreamingClientHttpRequest.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/SimpleStreamingClientHttpRequest;
3 4 1 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
0 1 2 Class java.net.URISyntaxException
protected java.io.OutputStream getBodyInternal(org.springframework.http.HttpHeaders);
descriptor: (Lorg/springframework/http/HttpHeaders;)Ljava/io/OutputStream;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.body:Ljava/io/OutputStream;
ifnonnull 10
1: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.outputStreaming:Z
ifeq 7
2: aload 1
invokevirtual org.springframework.http.HttpHeaders.getContentLength:()J
lstore 2
start local 2 3: lload 2
lconst_0
lcmp
iflt 6
4: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
lload 2
invokevirtual java.net.HttpURLConnection.setFixedLengthStreamingMode:(J)V
5: goto 7
6: StackMap locals: long
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.chunkSize:I
invokevirtual java.net.HttpURLConnection.setChunkedStreamingMode:(I)V
end local 2 7: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
aload 1
invokestatic org.springframework.http.client.SimpleBufferingClientHttpRequest.addHeaders:(Ljava/net/HttpURLConnection;Lorg/springframework/http/HttpHeaders;)V
8: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.connect:()V
9: aload 0
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getOutputStream:()Ljava/io/OutputStream;
putfield org.springframework.http.client.SimpleStreamingClientHttpRequest.body:Ljava/io/OutputStream;
10: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.body:Ljava/io/OutputStream;
invokestatic org.springframework.util.StreamUtils.nonClosing:(Ljava/io/OutputStream;)Ljava/io/OutputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/http/client/SimpleStreamingClientHttpRequest;
0 11 1 headers Lorg/springframework/http/HttpHeaders;
3 7 2 contentLength J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
headers
protected org.springframework.http.client.ClientHttpResponse (org.springframework.http.HttpHeaders);
descriptor: (Lorg/springframework/http/HttpHeaders;)Lorg/springframework/http/client/ClientHttpResponse;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.body:Ljava/io/OutputStream;
ifnull 3
1: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.body:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
2: goto 8
3: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
aload 1
invokestatic org.springframework.http.client.SimpleBufferingClientHttpRequest.addHeaders:(Ljava/net/HttpURLConnection;Lorg/springframework/http/HttpHeaders;)V
4: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.connect:()V
5: aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
pop
6: goto 8
7: StackMap locals:
StackMap stack: java.io.IOException
pop
8: StackMap locals:
StackMap stack:
new org.springframework.http.client.SimpleClientHttpResponse
dup
aload 0
getfield org.springframework.http.client.SimpleStreamingClientHttpRequest.connection:Ljava/net/HttpURLConnection;
invokespecial org.springframework.http.client.SimpleClientHttpResponse.<init>:(Ljava/net/HttpURLConnection;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/http/client/SimpleStreamingClientHttpRequest;
0 9 1 headers Lorg/springframework/http/HttpHeaders;
Exception table:
from to target type
0 6 7 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
headers
}
SourceFile: "SimpleStreamingClientHttpRequest.java"