Class Http4FileProvider
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractVfsContainer
org.apache.commons.vfs2.provider.AbstractFileProvider
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider
org.apache.commons.vfs2.provider.http4.Http4FileProvider
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileProvider,- VfsComponent
- Direct Known Subclasses:
- Http4sFileProvider
Deprecated.
FileProvider implementation using HttpComponents HttpClient library.- Since:
- 2.3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.apache.http.client.HttpClientcreateHttpClient(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions) Deprecated.Create anHttpClientobject for an http4 file system.protected org.apache.http.impl.client.HttpClientBuildercreateHttpClientBuilder(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions) Deprecated.Create anHttpClientBuilderobject.protected org.apache.http.client.protocol.HttpClientContextcreateHttpClientContext(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions, UserAuthenticationData authData) Deprecated.Create anHttpClientContextobject for an http4 file system.protected SSLContextcreateSSLContext(Http4FileSystemConfigBuilder builder, FileSystemOptions fileSystemOptions) Deprecated.CreateSSLContextfor HttpClient.protected FileSystemdoCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) Deprecated.Creates aFileSystem.Deprecated.Gets the file system capabilities.Deprecated.Gets the FileSystemConfigBuilder.Methods inherited from class org.apache.commons.vfs2.provider.AbstractOriginatingFileProviderfindFile, findFile, getFileSystemMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvideraddFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getFileNameParser, parseUri, setFileNameParserMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContaineraddComponent, removeComponentMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, init, setContext, setLogger
- 
Constructor Details- 
Http4FileProviderpublic Http4FileProvider()Deprecated.Constructs a new provider.
 
- 
- 
Method Details- 
createHttpClientprotected org.apache.http.client.HttpClient createHttpClient(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException Deprecated.Create anHttpClientobject for an http4 file system.- Parameters:
- builder- Configuration options builder for http4 provider
- rootName- The root path
- fileSystemOptions- The file system options
- Returns:
- an HttpClientobject
- Throws:
- FileSystemException- if an error occurs.
 
- 
createHttpClientBuilderprotected org.apache.http.impl.client.HttpClientBuilder createHttpClientBuilder(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException Deprecated.Create anHttpClientBuilderobject. Invoked bycreateHttpClient(Http4FileSystemConfigBuilder, GenericFileName, FileSystemOptions).- Parameters:
- builder- Configuration options builder for HTTP4 provider
- rootName- The root path
- fileSystemOptions- The FileSystem options
- Returns:
- an HttpClientBuilderobject
- Throws:
- FileSystemException- if an error occurs
 
- 
createHttpClientContextprotected org.apache.http.client.protocol.HttpClientContext createHttpClientContext(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions, UserAuthenticationData authData) Deprecated.Create anHttpClientContextobject for an http4 file system.- Parameters:
- builder- Configuration options builder for http4 provider
- rootName- The root path
- fileSystemOptions- The FileSystem options
- authData- The- UserAuthenticationDataobject
- Returns:
- an HttpClientContextobject
 
- 
createSSLContextprotected SSLContext createSSLContext(Http4FileSystemConfigBuilder builder, FileSystemOptions fileSystemOptions) throws FileSystemException Deprecated.CreateSSLContextfor HttpClient. Invoked bycreateHttpClientBuilder(Http4FileSystemConfigBuilder, GenericFileName, FileSystemOptions).- Parameters:
- builder- Configuration options builder for HTTP4 provider
- fileSystemOptions- The FileSystem options
- Returns:
- a SSLContextfor HttpClient
- Throws:
- FileSystemException- if an error occurs
 
- 
doCreateFileSystemprotected FileSystem doCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException Deprecated.Description copied from class:AbstractOriginatingFileProviderCreates aFileSystem. If the returned FileSystem implementsVfsComponent, it will be initialized.- Specified by:
- doCreateFileSystemin class- AbstractOriginatingFileProvider
- Parameters:
- name- The name of the root file of the file system to create.
- fileSystemOptions- The FileSystem options.
- Returns:
- The FileSystem, never null.
- Throws:
- FileSystemException- if an error occurs.
 
- 
getCapabilitiesDeprecated.Description copied from interface:FileProviderGets the file system capabilities.These are the same as on the file system, but available before the first file system was instantiated. - Returns:
- a Collection of the file systems Capabilities.
 
- 
getConfigBuilderDeprecated.Description copied from class:AbstractFileProviderGets the FileSystemConfigBuilder.- Specified by:
- getConfigBuilderin interface- FileProvider
- Overrides:
- getConfigBuilderin class- AbstractFileProvider
- Returns:
- the FileSystemConfigBuilder.
 
 
- 
org.apache.commons.vfs2.provider.http5.