Class HttpClientFactory
java.lang.Object
org.apache.commons.vfs2.provider.http.HttpClientFactory
Create a HttpClient instance.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.httpclient.HttpClient
createConnection
(String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) static org.apache.commons.httpclient.HttpClient
createConnection
(HttpFileSystemConfigBuilder builder, String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) Creates a new connection to the server.
-
Method Details
-
createConnection
public static org.apache.commons.httpclient.HttpClient createConnection(String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) throws FileSystemException - Throws:
FileSystemException
-
createConnection
public static org.apache.commons.httpclient.HttpClient createConnection(HttpFileSystemConfigBuilder builder, String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) throws FileSystemException Creates a new connection to the server.- Parameters:
builder
- The HttpFileSystemConfigBuilder.scheme
- The protocol.hostname
- The hostname.port
- The port number.username
- The username.password
- The passwordfileSystemOptions
- The file system options.- Returns:
- a new HttpClient connection.
- Throws:
FileSystemException
- if an error occurs.- Since:
- 2.0
-