org.apache.commons.vfs.provider.http
Class HttpClientFactory
java.lang.Object
org.apache.commons.vfs.provider.http.HttpClientFactory
public class HttpClientFactory
- extends Object
Create a HttpClient instance.
- Version:
- $Revision: 833480 $ $Date: 2009-11-06 18:37:05 +0100(ven, 06 nov 2009) $
- Author:
- Mario Ivankovits
Method Summary |
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. |
static org.apache.commons.httpclient.HttpClient |
createConnection(String scheme,
String hostname,
int port,
String username,
String password,
FileSystemOptions fileSystemOptions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.username
- The username.password
- The passwordfileSystemOptions
- The file system options.
- Returns:
- a new HttpClient connection.
- Throws:
FileSystemException
- if an error occurs.
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.