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, setAttribute
getContext, getLogger, setContext, setLogger
protected 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)
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.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.