public class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor extends org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
super_class: org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
{
private int connectTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int readTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.<init>:()V
1: aload 0
iconst_m1
putfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.connectTimeout:I
2: aload 0
iconst_m1
putfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.readTimeout:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
public void setConnectTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.connectTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 2 1 connectTimeout I
MethodParameters:
Name Flags
connectTimeout
public void setReadTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.readTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 2 1 readTimeout I
MethodParameters:
Name Flags
readTimeout
protected org.springframework.remoting.support.RemoteInvocationResult doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration, java.io.ByteArrayOutputStream);
descriptor: (Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/io/ByteArrayOutputStream;)Lorg/springframework/remoting/support/RemoteInvocationResult;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.openConnection:(Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;)Ljava/net/HttpURLConnection;
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual java.io.ByteArrayOutputStream.size:()I
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.prepareConnection:(Ljava/net/HttpURLConnection;I)V
2: aload 0
aload 1
aload 3
aload 2
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.writeRequestBody:(Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/net/HttpURLConnection;Ljava/io/ByteArrayOutputStream;)V
3: aload 0
aload 1
aload 3
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.validateResponse:(Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/net/HttpURLConnection;)V
4: aload 0
aload 1
aload 3
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.readResponseBody:(Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/net/HttpURLConnection;)Ljava/io/InputStream;
astore 4
start local 4 5: aload 0
aload 4
aload 1
invokeinterface org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration.getCodebaseUrl:()Ljava/lang/String;
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.readRemoteInvocationResult:(Ljava/io/InputStream;Ljava/lang/String;)Lorg/springframework/remoting/support/RemoteInvocationResult;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 6 1 config Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;
0 6 2 baos Ljava/io/ByteArrayOutputStream;
1 6 3 con Ljava/net/HttpURLConnection;
5 6 4 responseBody Ljava/io/InputStream;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
config
baos
protected java.net.HttpURLConnection openConnection(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration);
descriptor: (Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;)Ljava/net/HttpURLConnection;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new java.net.URL
dup
aload 1
invokeinterface org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration.getServiceUrl:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 2
start local 2 1: aload 2
instanceof java.net.HttpURLConnection
ifne 5
2: new java.io.IOException
dup
3: new java.lang.StringBuilder
dup
ldc "Service URL ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration.getServiceUrl:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] does not resolve to an HTTP connection"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.net.URLConnection
StackMap stack:
aload 2
checkcast java.net.HttpURLConnection
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 6 1 config Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;
1 6 2 con Ljava/net/URLConnection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
config
protected void prepareConnection(java.net.HttpURLConnection, int);
descriptor: (Ljava/net/HttpURLConnection;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.connectTimeout:I
iflt 2
1: aload 1
aload 0
getfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.connectTimeout:I
invokevirtual java.net.HttpURLConnection.setConnectTimeout:(I)V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.readTimeout:I
iflt 4
3: aload 1
aload 0
getfield org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.readTimeout:I
invokevirtual java.net.HttpURLConnection.setReadTimeout:(I)V
4: StackMap locals:
StackMap stack:
aload 1
iconst_1
invokevirtual java.net.HttpURLConnection.setDoOutput:(Z)V
5: aload 1
ldc "POST"
invokevirtual java.net.HttpURLConnection.setRequestMethod:(Ljava/lang/String;)V
6: aload 1
ldc "Content-Type"
aload 0
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.getContentType:()Ljava/lang/String;
invokevirtual java.net.HttpURLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
7: aload 1
ldc "Content-Length"
iload 2
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.net.HttpURLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
8: invokestatic org.springframework.context.i18n.LocaleContextHolder.getLocaleContext:()Lorg/springframework/context/i18n/LocaleContext;
astore 3
start local 3 9: aload 3
ifnull 13
10: aload 3
invokeinterface org.springframework.context.i18n.LocaleContext.getLocale:()Ljava/util/Locale;
astore 4
start local 4 11: aload 4
ifnull 13
12: aload 1
ldc "Accept-Language"
aload 4
invokevirtual java.util.Locale.toLanguageTag:()Ljava/lang/String;
invokevirtual java.net.HttpURLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
end local 4 13: StackMap locals: org.springframework.context.i18n.LocaleContext
StackMap stack:
aload 0
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.isAcceptGzipEncoding:()Z
ifeq 15
14: aload 1
ldc "Accept-Encoding"
ldc "gzip"
invokevirtual java.net.HttpURLConnection.setRequestProperty:(Ljava/lang/String;Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 16 1 connection Ljava/net/HttpURLConnection;
0 16 2 contentLength I
9 16 3 localeContext Lorg/springframework/context/i18n/LocaleContext;
11 13 4 locale Ljava/util/Locale;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
connection
contentLength
protected void writeRequestBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration, java.net.HttpURLConnection, java.io.ByteArrayOutputStream);
descriptor: (Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/net/HttpURLConnection;Ljava/io/ByteArrayOutputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 2
invokevirtual java.net.HttpURLConnection.getOutputStream:()Ljava/io/OutputStream;
invokevirtual java.io.ByteArrayOutputStream.writeTo:(Ljava/io/OutputStream;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 2 1 config Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;
0 2 2 con Ljava/net/HttpURLConnection;
0 2 3 baos Ljava/io/ByteArrayOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
config
con
baos
protected void validateResponse(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration, java.net.HttpURLConnection);
descriptor: (Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/net/HttpURLConnection;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
sipush 300
if_icmplt 6
1: new java.io.IOException
dup
2: new java.lang.StringBuilder
dup
ldc "Did not receive successful HTTP response: status code = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
3: ldc ", status message = ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.net.HttpURLConnection.getResponseMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 7 1 config Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;
0 7 2 con Ljava/net/HttpURLConnection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
config
con
protected java.io.InputStream readResponseBody(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration, java.net.HttpURLConnection);
descriptor: (Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;Ljava/net/HttpURLConnection;)Ljava/io/InputStream;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.isGzipResponse:(Ljava/net/HttpURLConnection;)Z
ifeq 2
1: new java.util.zip.GZIPInputStream
dup
aload 2
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
invokespecial java.util.zip.GZIPInputStream.<init>:(Ljava/io/InputStream;)V
areturn
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 3 1 config Lorg/springframework/remoting/httpinvoker/HttpInvokerClientConfiguration;
0 3 2 con Ljava/net/HttpURLConnection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
config
con
protected boolean isGzipResponse(java.net.HttpURLConnection);
descriptor: (Ljava/net/HttpURLConnection;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "Content-Encoding"
invokevirtual java.net.HttpURLConnection.getHeaderField:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "gzip"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 2
iconst_1
ireturn
StackMap locals: java.lang.String
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/remoting/httpinvoker/SimpleHttpInvokerRequestExecutor;
0 3 1 con Ljava/net/HttpURLConnection;
1 3 2 encodingHeader Ljava/lang/String;
MethodParameters:
Name Flags
con
}
SourceFile: "SimpleHttpInvokerRequestExecutor.java"