public class Http4FileProvider extends AbstractOriginatingFileProvider
FileProvider
implementation using HttpComponents HttpClient library.Constructor and Description |
---|
Http4FileProvider()
Constructs a new provider.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.client.HttpClient |
createHttpClient(Http4FileSystemConfigBuilder builder,
GenericFileName rootName,
FileSystemOptions fileSystemOptions)
Create an
HttpClient object for an http4 file system. |
protected org.apache.http.impl.client.HttpClientBuilder |
createHttpClientBuilder(Http4FileSystemConfigBuilder builder,
GenericFileName rootName,
FileSystemOptions fileSystemOptions)
Create an
HttpClientBuilder object. |
protected org.apache.http.client.protocol.HttpClientContext |
createHttpClientContext(Http4FileSystemConfigBuilder builder,
GenericFileName rootName,
FileSystemOptions fileSystemOptions,
UserAuthenticationData authData)
Create an
HttpClientContext object for an http4 file system. |
protected SSLContext |
createSSLContext(Http4FileSystemConfigBuilder builder,
FileSystemOptions fileSystemOptions)
Create
SSLContext for HttpClient. |
protected FileSystem |
doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates a
FileSystem . |
Collection<Capability> |
getCapabilities()
Gets the file system capabilities.
|
FileSystemConfigBuilder |
getConfigBuilder()
Returns the FileSystemConfigBuidler.
|
findFile, findFile, getFileSystem
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getFileNameParser, parseUri, setFileNameParser
addComponent, removeComponent
getContext, getLogger, init, setContext, setLogger
public FileSystemConfigBuilder getConfigBuilder()
AbstractFileProvider
getConfigBuilder
in interface FileProvider
getConfigBuilder
in class AbstractFileProvider
public Collection<Capability> getCapabilities()
FileProvider
These are the same as on the file system, but available before the first file system was instanciated.
protected FileSystem doCreateFileSystem(FileName name, FileSystemOptions fileSystemOptions) throws FileSystemException
AbstractOriginatingFileProvider
FileSystem
. If the returned FileSystem implements VfsComponent
, it will be initialised.doCreateFileSystem
in class AbstractOriginatingFileProvider
name
- The name of the root file of the file system to create.fileSystemOptions
- The FileSystem options.FileSystemException
- if an error occurs.protected org.apache.http.client.HttpClient createHttpClient(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException
HttpClient
object for an http4 file system.builder
- Configuration options builder for http4 providerrootName
- The root pathfileSystemOptions
- The file system optionsHttpClient
objectFileSystemException
- if an error occurs.protected org.apache.http.impl.client.HttpClientBuilder createHttpClientBuilder(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions) throws FileSystemException
HttpClientBuilder
object. Invoked by createHttpClient(Http4FileSystemConfigBuilder, GenericFileName, FileSystemOptions)
.builder
- Configuration options builder for HTTP4 providerrootName
- The root pathfileSystemOptions
- The FileSystem optionsHttpClientBuilder
objectFileSystemException
- if an error occursprotected SSLContext createSSLContext(Http4FileSystemConfigBuilder builder, FileSystemOptions fileSystemOptions) throws FileSystemException
SSLContext
for HttpClient. Invoked by createHttpClientBuilder(Http4FileSystemConfigBuilder, GenericFileName, FileSystemOptions)
.builder
- Configuration options builder for HTTP4 providerfileSystemOptions
- The FileSystem optionsSSLContext
for HttpClientFileSystemException
- if an error occursprotected org.apache.http.client.protocol.HttpClientContext createHttpClientContext(Http4FileSystemConfigBuilder builder, GenericFileName rootName, FileSystemOptions fileSystemOptions, UserAuthenticationData authData) throws FileSystemException
HttpClientContext
object for an http4 file system.builder
- Configuration options builder for http4 providerrootName
- The root pathfileSystemOptions
- The FileSystem optionsauthData
- The UserAuthentiationData
objectHttpClientContext
objectFileSystemException
- if an error occursCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.