public class Http5FileSystem extends AbstractFileSystem
Modifier | Constructor and Description |
---|---|
protected |
Http5FileSystem(FileName rootName,
FileSystemOptions fileSystemOptions,
org.apache.hc.client5.http.classic.HttpClient httpClient,
org.apache.hc.client5.http.protocol.HttpClientContext httpClientContext)
Construct
Http4FileSystem . |
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Adds the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected void |
doCloseCommunicationLink()
Closes the underlying link used to access the files.
|
protected org.apache.hc.client5.http.classic.HttpClient |
getHttpClient()
Return the internal
HttpClient instance. |
protected org.apache.hc.client5.http.protocol.HttpClientContext |
getHttpClientContext()
Return the internal
HttpClientContext instance. |
protected URI |
getInternalBaseURI()
Return the internal base
URI instance. |
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
getContext, getLogger, setContext, setLogger
protected Http5FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.client5.http.protocol.HttpClientContext httpClientContext)
Http4FileSystem
.rootName
- root base namefileSystemOptions
- file system optionshttpClient
- HttpClient
instancehttpClientContext
- HttpClientContext
instanceprotected void addCapabilities(Collection<Capability> caps)
AbstractFileSystem
addCapabilities
in class AbstractFileSystem
caps
- collections of Capabilities, can be immutable.protected FileObject createFile(AbstractFileName name) throws Exception
AbstractFileSystem
This method is called only if the requested file is not cached.
createFile
in class AbstractFileSystem
name
- name referencing the new file.Exception
- might throw an Exception, which is then wrapped in FileSystemException.protected void doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
protected org.apache.hc.client5.http.classic.HttpClient getHttpClient()
HttpClient
instance.HttpClient
instanceprotected org.apache.hc.client5.http.protocol.HttpClientContext getHttpClientContext()
HttpClientContext
instance.HttpClientContext
instanceprotected URI getInternalBaseURI()
URI
instance.URI
instanceCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.