public class Http4FileSystem extends AbstractFileSystem
| Modifier | Constructor and Description |
|---|---|
protected |
Http4FileSystem(FileName rootName,
FileSystemOptions fileSystemOptions,
org.apache.http.client.HttpClient httpClient,
org.apache.http.client.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.http.client.HttpClient |
getHttpClient()
Return the internal
HttpClient instance. |
protected org.apache.http.client.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, setAttributegetContext, getLogger, setContext, setLoggerprotected Http4FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext)
Http4FileSystem.rootName - root base namefileSystemOptions - file system optionshttpClient - HttpClient instancehttpClientContext - HttpClientContext instanceprotected void addCapabilities(Collection<Capability> caps)
AbstractFileSystemaddCapabilities in class AbstractFileSystemcaps - collections of Capabilities, can be immutable.protected FileObject createFile(AbstractFileName name) throws Exception
AbstractFileSystemThis method is called only if the requested file is not cached.
createFile in class AbstractFileSystemname - name referencing the new file.Exception - might throw an Exception, which is then wrapped in FileSystemException.protected void doCloseCommunicationLink()
AbstractFileSystemdoCloseCommunicationLink in class AbstractFileSystemprotected org.apache.http.client.HttpClient getHttpClient()
HttpClient instance.HttpClient instanceprotected org.apache.http.client.protocol.HttpClientContext getHttpClientContext()
HttpClientContext instance.HttpClientContext instanceprotected URI getInternalBaseURI()
URI instance.URI instanceCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.