public final class org.apache.commons.vfs2.provider.http.HttpClientFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.commons.vfs2.provider.http.HttpClientFactory
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/vfs2/provider/http/HttpClientFactory;
public static org.apache.commons.httpclient.HttpClient createConnection(java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, org.apache.commons.vfs2.FileSystemOptions);
descriptor: (Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/vfs2/FileSystemOptions;)Lorg/apache/commons/httpclient/HttpClient;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: invokestatic org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getInstance:()Lorg/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder;
aload 0
aload 1
iload 2
aload 3
aload 4
1: aload 5
2: invokestatic org.apache.commons.vfs2.provider.http.HttpClientFactory.createConnection:(Lorg/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/vfs2/FileSystemOptions;)Lorg/apache/commons/httpclient/HttpClient;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 scheme Ljava/lang/String;
0 3 1 hostname Ljava/lang/String;
0 3 2 port I
0 3 3 username Ljava/lang/String;
0 3 4 password Ljava/lang/String;
0 3 5 fileSystemOptions Lorg/apache/commons/vfs2/FileSystemOptions;
Exceptions:
throws org.apache.commons.vfs2.FileSystemException
MethodParameters:
Name Flags
scheme final
hostname final
port final
username final
password final
fileSystemOptions final
public static org.apache.commons.httpclient.HttpClient createConnection(org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, org.apache.commons.vfs2.FileSystemOptions);
descriptor: (Lorg/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/vfs2/FileSystemOptions;)Lorg/apache/commons/httpclient/HttpClient;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=17, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: new org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
dup
invokespecial org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.<init>:()V
astore 8
start local 8 1: aload 8
invokeinterface org.apache.commons.httpclient.HttpConnectionManager.getParams:()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
astore 9
start local 9 2: new org.apache.commons.httpclient.HttpClient
dup
aload 8
invokespecial org.apache.commons.httpclient.HttpClient.<init>:(Lorg/apache/commons/httpclient/HttpConnectionManager;)V
astore 7
start local 7 3: new org.apache.commons.httpclient.HostConfiguration
dup
invokespecial org.apache.commons.httpclient.HostConfiguration.<init>:()V
astore 10
start local 10 4: aload 10
aload 2
iload 3
aload 1
invokevirtual org.apache.commons.httpclient.HostConfiguration.setHost:(Ljava/lang/String;ILjava/lang/String;)V
5: aload 6
ifnull 34
6: aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getProxyHost:(Lorg/apache/commons/vfs2/FileSystemOptions;)Ljava/lang/String;
astore 11
start local 11 7: aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getProxyPort:(Lorg/apache/commons/vfs2/FileSystemOptions;)I
istore 12
start local 12 8: aload 11
ifnull 10
aload 11
invokevirtual java.lang.String.length:()I
ifle 10
iload 12
ifle 10
9: aload 10
aload 11
iload 12
invokevirtual org.apache.commons.httpclient.HostConfiguration.setProxy:(Ljava/lang/String;I)V
10: StackMap locals: org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder java.lang.String java.lang.String int java.lang.String java.lang.String org.apache.commons.vfs2.FileSystemOptions org.apache.commons.httpclient.HttpClient org.apache.commons.httpclient.HttpConnectionManager org.apache.commons.httpclient.params.HttpConnectionManagerParams org.apache.commons.httpclient.HostConfiguration java.lang.String int
StackMap stack:
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getProxyAuthenticator:(Lorg/apache/commons/vfs2/FileSystemOptions;)Lorg/apache/commons/vfs2/UserAuthenticator;
astore 13
start local 13 11: aload 13
ifnull 31
12: aload 13
13: iconst_2
anewarray org.apache.commons.vfs2.UserAuthenticationData$Type
dup
iconst_0
getstatic org.apache.commons.vfs2.UserAuthenticationData.USERNAME:Lorg/apache/commons/vfs2/UserAuthenticationData$Type;
aastore
dup
iconst_1
14: getstatic org.apache.commons.vfs2.UserAuthenticationData.PASSWORD:Lorg/apache/commons/vfs2/UserAuthenticationData$Type;
aastore
15: invokestatic org.apache.commons.vfs2.util.UserAuthenticatorUtils.authenticate:(Lorg/apache/commons/vfs2/UserAuthenticator;[Lorg/apache/commons/vfs2/UserAuthenticationData$Type;)Lorg/apache/commons/vfs2/UserAuthenticationData;
astore 14
start local 14 16: aload 14
ifnull 27
17: new org.apache.commons.httpclient.UsernamePasswordCredentials
dup
18: aload 14
19: getstatic org.apache.commons.vfs2.UserAuthenticationData.USERNAME:Lorg/apache/commons/vfs2/UserAuthenticationData$Type;
aconst_null
20: invokestatic org.apache.commons.vfs2.util.UserAuthenticatorUtils.getData:(Lorg/apache/commons/vfs2/UserAuthenticationData;Lorg/apache/commons/vfs2/UserAuthenticationData$Type;[C)[C
invokestatic org.apache.commons.vfs2.util.UserAuthenticatorUtils.toString:([C)Ljava/lang/String;
21: aload 14
22: getstatic org.apache.commons.vfs2.UserAuthenticationData.PASSWORD:Lorg/apache/commons/vfs2/UserAuthenticationData$Type;
aconst_null
23: invokestatic org.apache.commons.vfs2.util.UserAuthenticatorUtils.getData:(Lorg/apache/commons/vfs2/UserAuthenticationData;Lorg/apache/commons/vfs2/UserAuthenticationData$Type;[C)[C
invokestatic org.apache.commons.vfs2.util.UserAuthenticatorUtils.toString:([C)Ljava/lang/String;
24: invokespecial org.apache.commons.httpclient.UsernamePasswordCredentials.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 15
start local 15 25: new org.apache.commons.httpclient.auth.AuthScope
dup
aload 11
iconst_m1
invokespecial org.apache.commons.httpclient.auth.AuthScope.<init>:(Ljava/lang/String;I)V
astore 16
start local 16 26: aload 7
invokevirtual org.apache.commons.httpclient.HttpClient.getState:()Lorg/apache/commons/httpclient/HttpState;
aload 16
aload 15
invokevirtual org.apache.commons.httpclient.HttpState.setProxyCredentials:(Lorg/apache/commons/httpclient/auth/AuthScope;Lorg/apache/commons/httpclient/Credentials;)V
end local 16 end local 15 27: StackMap locals: org.apache.commons.vfs2.UserAuthenticator org.apache.commons.vfs2.UserAuthenticationData
StackMap stack:
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.isPreemptiveAuth:(Lorg/apache/commons/vfs2/FileSystemOptions;)Z
ifeq 31
28: new org.apache.commons.httpclient.params.HttpClientParams
dup
invokespecial org.apache.commons.httpclient.params.HttpClientParams.<init>:()V
astore 15
start local 15 29: aload 15
iconst_1
invokevirtual org.apache.commons.httpclient.params.HttpClientParams.setAuthenticationPreemptive:(Z)V
30: aload 7
aload 15
invokevirtual org.apache.commons.httpclient.HttpClient.setParams:(Lorg/apache/commons/httpclient/params/HttpClientParams;)V
end local 15 end local 14 31: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getCookies:(Lorg/apache/commons/vfs2/FileSystemOptions;)[Lorg/apache/commons/httpclient/Cookie;
astore 14
start local 14 32: aload 14
ifnull 34
33: aload 7
invokevirtual org.apache.commons.httpclient.HttpClient.getState:()Lorg/apache/commons/httpclient/HttpState;
aload 14
invokevirtual org.apache.commons.httpclient.HttpState.addCookies:([Lorg/apache/commons/httpclient/Cookie;)V
end local 14 end local 13 end local 12 end local 11 34: StackMap locals:
StackMap stack:
aload 9
aload 10
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getMaxConnectionsPerHost:(Lorg/apache/commons/vfs2/FileSystemOptions;)I
invokevirtual org.apache.commons.httpclient.params.HttpConnectionManagerParams.setMaxConnectionsPerHost:(Lorg/apache/commons/httpclient/HostConfiguration;I)V
35: aload 9
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getMaxTotalConnections:(Lorg/apache/commons/vfs2/FileSystemOptions;)I
invokevirtual org.apache.commons.httpclient.params.HttpConnectionManagerParams.setMaxTotalConnections:(I)V
36: aload 9
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getConnectionTimeout:(Lorg/apache/commons/vfs2/FileSystemOptions;)I
invokevirtual org.apache.commons.httpclient.params.HttpConnectionManagerParams.setConnectionTimeout:(I)V
37: aload 9
aload 0
aload 6
invokevirtual org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.getSoTimeout:(Lorg/apache/commons/vfs2/FileSystemOptions;)I
invokevirtual org.apache.commons.httpclient.params.HttpConnectionManagerParams.setSoTimeout:(I)V
38: aload 7
aload 10
invokevirtual org.apache.commons.httpclient.HttpClient.setHostConfiguration:(Lorg/apache/commons/httpclient/HostConfiguration;)V
39: aload 4
ifnull 46
40: new org.apache.commons.httpclient.UsernamePasswordCredentials
dup
aload 4
aload 5
invokespecial org.apache.commons.httpclient.UsernamePasswordCredentials.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 11
start local 11 41: new org.apache.commons.httpclient.auth.AuthScope
dup
aload 2
iconst_m1
invokespecial org.apache.commons.httpclient.auth.AuthScope.<init>:(Ljava/lang/String;I)V
astore 12
start local 12 42: aload 7
invokevirtual org.apache.commons.httpclient.HttpClient.getState:()Lorg/apache/commons/httpclient/HttpState;
aload 12
aload 11
invokevirtual org.apache.commons.httpclient.HttpState.setCredentials:(Lorg/apache/commons/httpclient/auth/AuthScope;Lorg/apache/commons/httpclient/Credentials;)V
end local 12 end local 11 end local 10 end local 9 end local 8 43: goto 46
end local 7 StackMap locals: org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder java.lang.String java.lang.String int java.lang.String java.lang.String org.apache.commons.vfs2.FileSystemOptions
StackMap stack: java.lang.Exception
44: astore 8
start local 8 45: new org.apache.commons.vfs2.FileSystemException
dup
ldc "vfs.provider.http/connect.error"
aload 8
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokespecial org.apache.commons.vfs2.FileSystemException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
athrow
end local 8 start local 7 46: StackMap locals: org.apache.commons.httpclient.HttpClient
StackMap stack:
aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 builder Lorg/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder;
0 47 1 scheme Ljava/lang/String;
0 47 2 hostname Ljava/lang/String;
0 47 3 port I
0 47 4 username Ljava/lang/String;
0 47 5 password Ljava/lang/String;
0 47 6 fileSystemOptions Lorg/apache/commons/vfs2/FileSystemOptions;
3 44 7 client Lorg/apache/commons/httpclient/HttpClient;
46 47 7 client Lorg/apache/commons/httpclient/HttpClient;
1 43 8 mgr Lorg/apache/commons/httpclient/HttpConnectionManager;
2 43 9 connectionMgrParams Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
4 43 10 config Lorg/apache/commons/httpclient/HostConfiguration;
7 34 11 proxyHost Ljava/lang/String;
8 34 12 proxyPort I
11 34 13 proxyAuth Lorg/apache/commons/vfs2/UserAuthenticator;
16 31 14 authData Lorg/apache/commons/vfs2/UserAuthenticationData;
25 27 15 proxyCreds Lorg/apache/commons/httpclient/UsernamePasswordCredentials;
26 27 16 scope Lorg/apache/commons/httpclient/auth/AuthScope;
29 31 15 httpClientParams Lorg/apache/commons/httpclient/params/HttpClientParams;
32 34 14 cookies [Lorg/apache/commons/httpclient/Cookie;
41 43 11 creds Lorg/apache/commons/httpclient/UsernamePasswordCredentials;
42 43 12 scope Lorg/apache/commons/httpclient/auth/AuthScope;
45 46 8 exc Ljava/lang/Exception;
Exception table:
from to target type
0 43 44 Class java.lang.Exception
Exceptions:
throws org.apache.commons.vfs2.FileSystemException
MethodParameters:
Name Flags
builder final
scheme final
hostname final
port final
username final
password final
fileSystemOptions final
}
SourceFile: "HttpClientFactory.java"
InnerClasses:
public Type = org.apache.commons.vfs2.UserAuthenticationData$Type of org.apache.commons.vfs2.UserAuthenticationData