Class Http4FileSystemConfigBuilder
java.lang.Object
org.apache.commons.vfs2.FileSystemConfigBuilder
org.apache.commons.vfs2.provider.http4.Http4FileSystemConfigBuilder
Deprecated.
Configuration options builder utility for http4 provider.
- Since:
- 2.3
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.Defines whether the HttpClient should follow redirections from the responses.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedHttp4FileSystemConfigBuilder(String prefix) Deprecated.Constructs anHttp4FileSystemConfigBuilder.
- 
Method SummaryModifier and TypeMethodDescriptionprotected Class<? extends FileSystem> Deprecated.Gets the target of this configuration.intDeprecated.Deprecated./** Gets the connection timeout.org.apache.http.cookie.Cookie[]getCookies(FileSystemOptions opts) Deprecated.Gets the cookies to add to the request.booleanDeprecated.Gets whether to follow redirects for the connection.static Http4FileSystemConfigBuilderDeprecated.Gets the singleton builder.Deprecated.Gets keystore file path to be used in SSL connections.Deprecated.Gets keystore type for SSL connections.intDeprecated.Gets the maximum number of connections allowed per host.intDeprecated.Gets the maximum number of connections allowed.Deprecated.Gets the proxy authenticator where the system should get the credentials from.Deprecated.Gets the proxy to use for http connection.intDeprecated.Gets the proxy-port to use for http the connection.Deprecated.Gets the proxy-scheme to use for http the connection.intDeprecated.Deprecated.Gets the socket timeout.Deprecated.Sets the charset used for url encoding.Deprecated.Gets the user agent string.booleanDeprecated.Determines if the hostname should be verified in SSL context.booleanisKeepAlive(FileSystemOptions opts) Deprecated.Determines if the FileSystemOptions indicate that HTTP Keep-Alive is respected.booleanDeprecated.Determines if the FileSystemOptions indicate that preemptive authentication is requested.voidsetConnectionTimeout(FileSystemOptions opts, int connectionTimeout) Deprecated.voidsetConnectionTimeout(FileSystemOptions opts, Duration connectionTimeout) Deprecated.Sets the connection timeout.voidsetCookies(FileSystemOptions opts, org.apache.http.cookie.Cookie[] cookies) Deprecated.The cookies to add to the request.voidsetFollowRedirect(FileSystemOptions opts, boolean redirect) Deprecated.Sets whether to follow redirects for the connection.voidsetHostnameVerificationEnabled(FileSystemOptions opts, boolean hostnameVerificationEnabled) Deprecated.Sets if the hostname should be verified in SSL context.voidsetKeepAlive(FileSystemOptions opts, boolean keepAlive) Deprecated.Sets if the FileSystemOptions indicate that HTTP Keep-Alive is respected.voidsetKeyStoreFile(FileSystemOptions opts, String keyStoreFile) Deprecated.Sets keystore file path for SSL connections.voidsetKeyStorePass(FileSystemOptions opts, String keyStorePass) Deprecated.Sets keystore pass phrase for SSL connections.voidsetKeyStoreType(FileSystemOptions opts, String keyStoreType) Deprecated.Sets keystore type for SSL connections.voidsetMaxConnectionsPerHost(FileSystemOptions opts, int maxHostConnections) Deprecated.Sets the maximum number of connections allowed to any host.voidsetMaxTotalConnections(FileSystemOptions opts, int maxTotalConnections) Deprecated.Sets the maximum number of connections allowed.voidsetPreemptiveAuth(FileSystemOptions opts, boolean preemptiveAuth) Deprecated.Sets the given value for preemptive HTTP authentication (using BASIC) on the given FileSystemOptions object.voidsetProxyAuthenticator(FileSystemOptions opts, UserAuthenticator authenticator) Deprecated.Sets the proxy authenticator where the system should get the credentials from.voidsetProxyHost(FileSystemOptions opts, String proxyHost) Deprecated.Sets the proxy to use for http connection.voidsetProxyPort(FileSystemOptions opts, int proxyPort) Deprecated.Sets the proxy-port to use for http connection.voidsetProxyScheme(FileSystemOptions opts, String proxyScheme) Deprecated.Sets the proxy-scheme to use for http connection.voidsetSoTimeout(FileSystemOptions opts, int soTimeout) Deprecated.voidsetSoTimeout(FileSystemOptions opts, Duration soTimeout) Deprecated.Sets the socket timeout.voidsetUrlCharset(FileSystemOptions opts, String charset) Deprecated.Sets the charset used for URL encoding.voidsetUserAgent(FileSystemOptions opts, String userAgent) Deprecated.Sets the user agent to attach to the outgoing http methods.Methods inherited from class org.apache.commons.vfs2.FileSystemConfigBuildergetBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getParamOrDefault, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
- 
Field Details- 
KEY_FOLLOW_REDIRECTDeprecated.Defines whether the HttpClient should follow redirections from the responses.This parameter expects a value of type Boolean.- See Also:
 
 
- 
- 
Constructor Details- 
Http4FileSystemConfigBuilderDeprecated.Constructs anHttp4FileSystemConfigBuilder.- Parameters:
- prefix- String for properties of this file system.
 
 
- 
- 
Method Details- 
getInstanceDeprecated.Gets the singleton builder.- Returns:
- the singleton builder.
 
- 
getConfigClassDeprecated.Description copied from class:FileSystemConfigBuilderGets the target of this configuration.- Specified by:
- getConfigClassin class- FileSystemConfigBuilder
- Returns:
- the specific file system class
 
- 
getConnectionTimeoutDeprecated.Gets the connection timeout.- Parameters:
- opts- The FileSystem options.
- Returns:
- The connection timeout.
 
- 
getConnectionTimeoutDurationDeprecated./** Gets the connection timeout.- Parameters:
- opts- The FileSystem options.
- Returns:
- The connection timeout.
- Since:
- 2.8.0
 
- 
getCookiesDeprecated.Gets the cookies to add to the request.- Parameters:
- opts- The FileSystem options.
- Returns:
- the Cookie array.
 
- 
getFollowRedirectDeprecated.Gets whether to follow redirects for the connection.- Parameters:
- opts- The FileSystem options.
- Returns:
- trueto follow redirects,- falsenot to.
- See Also:
 
- 
getKeyStoreFileDeprecated.Gets keystore file path to be used in SSL connections.- Parameters:
- opts- the file system options to modify
- Returns:
- keystore file path to be used in SSL connections
 
- 
getKeyStoreTypeDeprecated.Gets keystore type for SSL connections.- Parameters:
- opts- the file system options to modify
- Returns:
- keystore type for SSL connections
- Since:
- 2.7.0
 
- 
getMaxConnectionsPerHostDeprecated.Gets the maximum number of connections allowed per host.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- The maximum number of connections allowed per host.
 
- 
getMaxTotalConnectionsDeprecated.Gets the maximum number of connections allowed.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- The maximum number of connections allowed.
 
- 
getProxyAuthenticatorDeprecated.Gets the proxy authenticator where the system should get the credentials from.- Parameters:
- opts- The FileSystem options.
- Returns:
- The UserAuthenticator.
 
- 
getProxyHostDeprecated.Gets the proxy to use for http connection. You have to set the ProxyPort too if you would like to have the proxy really used.- Parameters:
- opts- The FileSystem options.
- Returns:
- proxyHost
- See Also:
 
- 
getProxyPortDeprecated.Gets the proxy-port to use for http the connection. You have to set the ProxyHost too if you would like to have the proxy really used.- Parameters:
- opts- The FileSystem options.
- Returns:
- proxyPort: the port number or 0 if it is not set
- See Also:
 
- 
getProxySchemeDeprecated.Gets the proxy-scheme to use for http the connection. You have to set the ProxyHost too if you would like to have the proxy really used.- Parameters:
- opts- The FileSystem options.
- Returns:
- proxyScheme: the http/https scheme of proxy server
- Since:
- 2.7.0
- See Also:
 
- 
getSoTimeoutDeprecated.Gets the socket timeout.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- The socket timeout.
 
- 
getSoTimeoutDurationDeprecated.Gets the socket timeout.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- The socket timeout.
- Since:
- 2.8.0
 
- 
getUrlCharsetDeprecated.Sets the charset used for url encoding.- Parameters:
- opts- The FileSystem options.
- Returns:
- the charset name.
 
- 
getUserAgentDeprecated.Gets the user agent string.- Parameters:
- opts- the file system options to modify
- Returns:
- User provided User-Agent string, otherwise default of: Commons-VFS
 
- 
isHostnameVerificationEnabledDeprecated.Determines if the hostname should be verified in SSL context.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- true if the FileSystemOptions indicate that HTTP Keep-Alive is respected.
 
- 
isKeepAliveDeprecated.Determines if the FileSystemOptions indicate that HTTP Keep-Alive is respected.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- true if the FileSystemOptions indicate that HTTP Keep-Alive is respected.
 
- 
isPreemptiveAuthDeprecated.Determines if the FileSystemOptions indicate that preemptive authentication is requested.- Parameters:
- opts- The FileSystemOptions.
- Returns:
- true if preemptiveAuth is requested.
 
- 
setConnectionTimeoutDeprecated.Sets the connection timeout.- Parameters:
- opts- The FileSystem options.
- connectionTimeout- The connection timeout.
- Since:
- 2.8.0
 
- 
setConnectionTimeoutDeprecated.Sets the connection timeout.- Parameters:
- opts- The FileSystem options.
- connectionTimeout- The connection timeout.
 
- 
setCookiesDeprecated.The cookies to add to the request.- Parameters:
- opts- The FileSystem options.
- cookies- An array of Cookies.
 
- 
setFollowRedirectDeprecated.Sets whether to follow redirects for the connection.- Parameters:
- opts- The FileSystem options.
- redirect-- trueto follow redirects,- falsenot to.
- See Also:
 
- 
setHostnameVerificationEnabledpublic void setHostnameVerificationEnabled(FileSystemOptions opts, boolean hostnameVerificationEnabled) Deprecated.Sets if the hostname should be verified in SSL context.- Parameters:
- opts- The FileSystemOptions.
- hostnameVerificationEnabled- whether hostname should be verified
 
- 
setKeepAliveDeprecated.Sets if the FileSystemOptions indicate that HTTP Keep-Alive is respected.- Parameters:
- opts- The FileSystemOptions.
- keepAlive- whether the FileSystemOptions indicate that HTTP Keep-Alive is respected or not.
 
- 
setKeyStoreFileDeprecated.Sets keystore file path for SSL connections.- Parameters:
- opts- the file system options to modify
- keyStoreFile- keystore file path
 
- 
setKeyStorePassDeprecated.Sets keystore pass phrase for SSL connections.- Parameters:
- opts- the file system options to modify
- keyStorePass- keystore pass phrase for SSL connections
 
- 
setKeyStoreTypeDeprecated.Sets keystore type for SSL connections.- Parameters:
- opts- the file system options to modify
- keyStoreType- keystore type for SSL connections
- Since:
- 2.7.0
 
- 
setMaxConnectionsPerHostDeprecated.Sets the maximum number of connections allowed to any host.- Parameters:
- opts- The FileSystem options.
- maxHostConnections- The maximum number of connections to a host.
 
- 
setMaxTotalConnectionsDeprecated.Sets the maximum number of connections allowed.- Parameters:
- opts- The FileSystem options.
- maxTotalConnections- The maximum number of connections.
 
- 
setPreemptiveAuthDeprecated.Sets the given value for preemptive HTTP authentication (using BASIC) on the given FileSystemOptions object. Defaults to false if not set. It may be appropriate to set to true in cases when the resulting chattiness of the conversation outweighs any architectural desire to use a stronger authentication scheme than basic/preemptive.- Parameters:
- opts- The FileSystemOptions.
- preemptiveAuth- the desired setting; true=enabled and false=disabled.
 
- 
setProxyAuthenticatorDeprecated.Sets the proxy authenticator where the system should get the credentials from.- Parameters:
- opts- The FileSystem options.
- authenticator- The UserAuthenticator.
 
- 
setProxyHostDeprecated.Sets the proxy to use for http connection.You have to set the ProxyPort too if you would like to have the proxy really used. - Parameters:
- opts- The FileSystem options.
- proxyHost- the host
- See Also:
 
- 
setProxyPortDeprecated.Sets the proxy-port to use for http connection. You have to set the ProxyHost too if you would like to have the proxy really used.- Parameters:
- opts- The FileSystem options.
- proxyPort- the port
- See Also:
 
- 
setProxySchemeDeprecated.Sets the proxy-scheme to use for http connection. You have to set the ProxyHost too if you would like to have the proxy really used.- Parameters:
- opts- The FileSystem options.
- proxyScheme- the protocol scheme
- Since:
- 2.7.0
- See Also:
 
- 
setSoTimeoutDeprecated.Sets the socket timeout.- Parameters:
- opts- The FileSystem options.
- soTimeout- socket timeout.
 
- 
setSoTimeoutDeprecated.Sets the socket timeout.- Parameters:
- opts- The FileSystem options.
- soTimeout- socket timeout.
 
- 
setUrlCharsetDeprecated.Sets the charset used for URL encoding.- Parameters:
- opts- The FileSystem options.
- charset- the charset name.
 
- 
setUserAgentDeprecated.Sets the user agent to attach to the outgoing http methods.- Parameters:
- opts- the file system options to modify
- userAgent- User Agent String
 
 
- 
org.apache.commons.vfs2.provider.http5.