Class Http5FileSystem
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.http5.Http5FileSystem
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileSystem
,VfsComponent
http5 file system.
- Since:
- 2.5.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Http5FileSystem
(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.client5.http.protocol.HttpClientContext httpClientContext) ConstructsHttp4FileSystem
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCapabilities
(Collection<Capability> caps) Adds the capabilities of this file system.protected FileObject
createFile
(AbstractFileName name) Creates a file object.protected void
Closes the underlying link used to access the files.protected org.apache.hc.client5.http.classic.HttpClient
Gets the internalHttpClient
instance.protected org.apache.hc.client5.http.protocol.HttpClientContext
Gets the internalHttpClientContext
instance.protected URI
Gets the internal baseURI
instance.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Constructor Details
-
Http5FileSystem
protected Http5FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.client5.http.protocol.HttpClientContext httpClientContext) ConstructsHttp4FileSystem
.- Parameters:
rootName
- root base namefileSystemOptions
- file system optionshttpClient
-HttpClient
instancehttpClientContext
-HttpClientContext
instance
-
-
Method Details
-
addCapabilities
Description copied from class:AbstractFileSystem
Adds the capabilities of this file system.- Specified by:
addCapabilities
in classAbstractFileSystem
- Parameters:
caps
- collections of Capabilities, can be immutable.
-
createFile
Description copied from class:AbstractFileSystem
Creates a file object.This method is called only if the requested file is not cached.
- Specified by:
createFile
in classAbstractFileSystem
- Parameters:
name
- name referencing the new file.- Returns:
- new created FileObject.
- Throws:
Exception
- might throw an Exception, which is then wrapped in FileSystemException.
-
doCloseCommunicationLink
Description copied from class:AbstractFileSystem
Closes the underlying link used to access the files.- Overrides:
doCloseCommunicationLink
in classAbstractFileSystem
-
getHttpClient
Gets the internalHttpClient
instance.- Returns:
- the internal
HttpClient
instance
-
getHttpClientContext
Gets the internalHttpClientContext
instance.- Returns:
- the internal
HttpClientContext
instance
-
getInternalBaseURI
Gets the internal baseURI
instance.- Returns:
- the internal base
URI
instance
-