Class HttpFileSystemConfigBuilder
java.lang.Object
org.apache.commons.vfs.FileSystemConfigBuilder
org.apache.commons.vfs.provider.http.HttpFileSystemConfigBuilder
Configuration options for HTTP
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Mario Ivankovits
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class
org.apache.commons.httpclient.Cookie[]
getCookies
(FileSystemOptions opts) The cookies to add to the reqeststatic HttpFileSystemConfigBuilder
Get the proxy authenticator where the system should get the credentials fromGet the proxy to use for http connection You have to set the ProxyPort too if you would like to have the proxy relly used.int
Get the proxy-port to use for http the connection You have to set the ProxyHost too if you would like to have the proxy relly used.Set the charset used for url encodingvoid
setCookies
(FileSystemOptions opts, org.apache.commons.httpclient.Cookie[] cookies) The cookies to add to the reqestvoid
setProxyAuthenticator
(FileSystemOptions opts, UserAuthenticator authenticator) Set the proxy authenticator where the system should get the credentials fromvoid
setProxyHost
(FileSystemOptions opts, String proxyHost) Set the proxy to use for http connection.
You have to set the ProxyPort too if you would like to have the proxy relly used.void
setProxyPort
(FileSystemOptions opts, int proxyPort) Set the proxy-port to use for http connection You have to set the ProxyHost too if you would like to have the proxy relly used.void
setUrlCharset
(FileSystemOptions opts, String chaset) Set the charset used for url encodingMethods inherited from class org.apache.commons.vfs.FileSystemConfigBuilder
getParam, hasParam, setParam
-
Method Details
-
getInstance
-
setUrlCharset
Set the charset used for url encoding- Parameters:
chaset
- the chaset
-
getUrlCharset
Set the charset used for url encoding- Returns:
- the chaset
-
setProxyHost
Set the proxy to use for http connection.
You have to set the ProxyPort too if you would like to have the proxy relly used.- Parameters:
proxyHost
- the host- See Also:
-
setProxyPort
Set the proxy-port to use for http connection You have to set the ProxyHost too if you would like to have the proxy relly used.- Parameters:
proxyPort
- the port- See Also:
-
getProxyHost
Get the proxy to use for http connection You have to set the ProxyPort too if you would like to have the proxy relly used.- Returns:
- proxyHost
- See Also:
-
getProxyPort
Get the proxy-port to use for http the connection You have to set the ProxyHost too if you would like to have the proxy relly used.- Returns:
- proxyPort: the port number or 0 if it is not set
- See Also:
-
setProxyAuthenticator
Set the proxy authenticator where the system should get the credentials from -
getProxyAuthenticator
Get the proxy authenticator where the system should get the credentials from -
setCookies
The cookies to add to the reqest -
getCookies
The cookies to add to the reqest -
getConfigClass
- Specified by:
getConfigClass
in classFileSystemConfigBuilder
-