|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.FileSystemConfigBuilder
org.apache.commons.vfs.provider.http.HttpFileSystemConfigBuilder
public class HttpFileSystemConfigBuilder
Configuration options for HTTP
Constructor Summary | |
---|---|
protected |
HttpFileSystemConfigBuilder(String prefix)
|
Method Summary | |
---|---|
protected Class |
getConfigClass()
|
org.apache.commons.httpclient.Cookie[] |
getCookies(FileSystemOptions opts)
The cookies to add to the reqest |
static HttpFileSystemConfigBuilder |
getInstance()
|
int |
getMaxConnectionsPerHost(FileSystemOptions opts)
Retrieve the maximum number of connections allowed per host. |
int |
getMaxTotalConnections(FileSystemOptions opts)
Retrieve the maximum number of connections allowed. |
UserAuthenticator |
getProxyAuthenticator(FileSystemOptions opts)
Get the proxy authenticator where the system should get the credentials from |
String |
getProxyHost(FileSystemOptions opts)
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. |
int |
getProxyPort(FileSystemOptions opts)
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. |
String |
getUrlCharset(FileSystemOptions opts)
Set the charset used for url encoding |
void |
setCookies(FileSystemOptions opts,
org.apache.commons.httpclient.Cookie[] cookies)
The cookies to add to the reqest |
void |
setMaxConnectionsPerHost(FileSystemOptions opts,
int maxHostConnections)
The maximum number of connections allowed to any host |
void |
setMaxTotalConnections(FileSystemOptions opts,
int maxTotalConnections)
The maximum number of connections allowed |
void |
setProxyAuthenticator(FileSystemOptions opts,
UserAuthenticator authenticator)
Set the proxy authenticator where the system should get the credentials from |
void |
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 encoding |
Methods inherited from class org.apache.commons.vfs.FileSystemConfigBuilder |
---|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setRootURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HttpFileSystemConfigBuilder(String prefix)
Method Detail |
---|
public static HttpFileSystemConfigBuilder getInstance()
public void setUrlCharset(FileSystemOptions opts, String chaset)
chaset
- the chasetpublic String getUrlCharset(FileSystemOptions opts)
public void setProxyHost(FileSystemOptions opts, String proxyHost)
proxyHost
- the hostsetProxyPort(org.apache.commons.vfs.FileSystemOptions, int)
public void setProxyPort(FileSystemOptions opts, int proxyPort)
proxyPort
- the portsetProxyHost(org.apache.commons.vfs.FileSystemOptions, java.lang.String)
public String getProxyHost(FileSystemOptions opts)
setProxyPort(org.apache.commons.vfs.FileSystemOptions, int)
public int getProxyPort(FileSystemOptions opts)
setProxyHost(org.apache.commons.vfs.FileSystemOptions, java.lang.String)
public void setProxyAuthenticator(FileSystemOptions opts, UserAuthenticator authenticator)
public UserAuthenticator getProxyAuthenticator(FileSystemOptions opts)
public void setCookies(FileSystemOptions opts, org.apache.commons.httpclient.Cookie[] cookies)
public org.apache.commons.httpclient.Cookie[] getCookies(FileSystemOptions opts)
public void setMaxTotalConnections(FileSystemOptions opts, int maxTotalConnections)
public int getMaxTotalConnections(FileSystemOptions opts)
opts
- The FileSystemOptions.
public void setMaxConnectionsPerHost(FileSystemOptions opts, int maxHostConnections)
public int getMaxConnectionsPerHost(FileSystemOptions opts)
opts
- The FileSystemOptions.
protected Class getConfigClass()
getConfigClass
in class FileSystemConfigBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |