public class Http4FileSystem extends AbstractFileSystem
| Modifier and Type | Field and Description |
|---|---|
private org.apache.http.client.HttpClient |
httpClient
Internal
HttpClient instance of this file system. |
private org.apache.http.client.protocol.HttpClientContext |
httpClientContext
Internal
HttpClientContext instance of this file system. |
private java.net.URI |
internalBaseURI
Internal base URI of this file system.
|
| 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(java.util.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 java.net.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, setLoggerprivate final java.net.URI internalBaseURI
private final org.apache.http.client.HttpClient httpClient
HttpClient instance of this file system.private final org.apache.http.client.protocol.HttpClientContext httpClientContext
HttpClientContext instance of this file system.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 FileObject createFile(AbstractFileName name) throws java.lang.Exception
AbstractFileSystemThis method is called only if the requested file is not cached.
createFile in class AbstractFileSystemname - name referencing the new file.java.lang.Exception - might throw an Exception, which is then wrapped in FileSystemException.protected void addCapabilities(java.util.Collection<Capability> caps)
AbstractFileSystemaddCapabilities in class AbstractFileSystemcaps - collections of Capabilities, can be immutable.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 java.net.URI getInternalBaseURI()
URI instance.URI instance