Class Http4FileSystem
- java.lang.Object
-
- org.apache.commons.vfs2.provider.AbstractVfsComponent
-
- org.apache.commons.vfs2.provider.AbstractFileSystem
-
- org.apache.commons.vfs2.provider.http4.Http4FileSystem
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,FileSystem,VfsComponent
@Deprecated public class Http4FileSystem extends AbstractFileSystem
Deprecated.Useorg.apache.commons.vfs2.provider.http5.http4 file system.- Since:
- 2.3
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttp4FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext)Deprecated.Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddCapabilities(java.util.Collection<Capability> caps)Deprecated.Adds the capabilities of this file system.protected FileObjectcreateFile(AbstractFileName name)Deprecated.Creates a file object.protected voiddoCloseCommunicationLink()Deprecated.Closes the underlying link used to access the files.protected org.apache.http.client.HttpClientgetHttpClient()Deprecated.Gets the internalHttpClientinstance.protected org.apache.http.client.protocol.HttpClientContextgetHttpClientContext()Deprecated.Gets the internalHttpClientContextinstance.protected java.net.URIgetInternalBaseURI()Deprecated.Gets the internal baseURIinstance.-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
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
-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
-
-
-
Constructor Detail
-
Http4FileSystem
protected Http4FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext)
Deprecated.Constructs a new instance.- Parameters:
rootName- root base namefileSystemOptions- file system optionshttpClient-HttpClientinstancehttpClientContext-HttpClientContextinstance
-
-
Method Detail
-
addCapabilities
protected void addCapabilities(java.util.Collection<Capability> caps)
Deprecated.Description copied from class:AbstractFileSystemAdds the capabilities of this file system.- Specified by:
addCapabilitiesin classAbstractFileSystem- Parameters:
caps- collections of Capabilities, can be immutable.
-
createFile
protected FileObject createFile(AbstractFileName name) throws java.lang.Exception
Deprecated.Description copied from class:AbstractFileSystemCreates a file object.This method is called only if the requested file is not cached.
- Specified by:
createFilein classAbstractFileSystem- Parameters:
name- name referencing the new file.- Returns:
- new created FileObject.
- Throws:
java.lang.Exception- might throw an Exception, which is then wrapped in FileSystemException.
-
doCloseCommunicationLink
protected void doCloseCommunicationLink()
Deprecated.Description copied from class:AbstractFileSystemCloses the underlying link used to access the files.- Overrides:
doCloseCommunicationLinkin classAbstractFileSystem
-
getHttpClient
protected org.apache.http.client.HttpClient getHttpClient()
Deprecated.Gets the internalHttpClientinstance.- Returns:
- the internal
HttpClientinstance
-
getHttpClientContext
protected org.apache.http.client.protocol.HttpClientContext getHttpClientContext()
Deprecated.Gets the internalHttpClientContextinstance.- Returns:
- the internal
HttpClientContextinstance
-
getInternalBaseURI
protected java.net.URI getInternalBaseURI()
Deprecated.Gets the internal baseURIinstance.- Returns:
- the internal base
URIinstance
-
-