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 SummaryConstructorsModifierConstructorDescriptionprotectedHttp5FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.client5.http.protocol.HttpClientContext httpClientContext) ConstructsHttp4FileSystem.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection<Capability> caps) Adds the capabilities of this file system.protected FileObjectcreateFile(AbstractFileName name) Creates a file object.protected voidCloses the underlying link used to access the files.protected org.apache.hc.client5.http.classic.HttpClientGets the internalHttpClientinstance.protected org.apache.hc.client5.http.protocol.HttpClientContextGets the internalHttpClientContextinstance.protected URIGets the internal baseURIinstance.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystemaddJunction, 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, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, setContext, setLogger
- 
Constructor Details- 
Http5FileSystemprotected 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 name
- fileSystemOptions- file system options
- httpClient-- HttpClientinstance
- httpClientContext-- HttpClientContextinstance
 
 
- 
- 
Method Details- 
addCapabilitiesDescription copied from class:AbstractFileSystemAdds the capabilities of this file system.- Specified by:
- addCapabilitiesin class- AbstractFileSystem
- Parameters:
- caps- collections of Capabilities, can be immutable.
 
- 
createFileDescription copied from class:AbstractFileSystemCreates a file object.This method is called only if the requested file is not cached. - Specified by:
- createFilein class- AbstractFileSystem
- Parameters:
- name- name referencing the new file.
- Returns:
- new created FileObject.
- Throws:
- Exception- might throw an Exception, which is then wrapped in FileSystemException.
 
- 
doCloseCommunicationLinkDescription copied from class:AbstractFileSystemCloses the underlying link used to access the files.- Overrides:
- doCloseCommunicationLinkin class- AbstractFileSystem
 
- 
getHttpClientGets the internalHttpClientinstance.- Returns:
- the internal HttpClientinstance
 
- 
getHttpClientContextGets the internalHttpClientContextinstance.- Returns:
- the internal HttpClientContextinstance
 
- 
getInternalBaseURIGets the internal baseURIinstance.- Returns:
- the internal base URIinstance
 
 
-