Class HttpFileSystem
- java.lang.Object
-
- org.apache.commons.vfs2.provider.AbstractVfsComponent
-
- org.apache.commons.vfs2.provider.AbstractFileSystem
-
- org.apache.commons.vfs2.provider.http.HttpFileSystem
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,FileSystem
,VfsComponent
@Deprecated public class HttpFileSystem extends AbstractFileSystem
Deprecated.Useorg.apache.commons.vfs2.provider.http5
.An HTTP file system.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpFileSystem(GenericFileName rootName, org.apache.commons.httpclient.HttpClient httpClient, FileSystemOptions fileSystemOptions)
Deprecated.Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addCapabilities(java.util.Collection<Capability> caps)
Deprecated.Adds the capabilities of this file system.void
closeCommunicationLink()
Deprecated.Closes the underlying link used to access the files.protected FileObject
createFile(AbstractFileName name)
Deprecated.Creates a file object.protected org.apache.commons.httpclient.HttpClient
getClient()
Deprecated.Gets the HTTP client.-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
addJunction, addListener, close, decorateFileObject, doCloseCommunicationLink, 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
-
HttpFileSystem
protected HttpFileSystem(GenericFileName rootName, org.apache.commons.httpclient.HttpClient httpClient, FileSystemOptions fileSystemOptions)
Deprecated.Constructs a new instance.- Parameters:
rootName
- root base namehttpClient
-HttpClient
instancefileSystemOptions
- Options to build this file system.
-
-
Method Detail
-
addCapabilities
protected void addCapabilities(java.util.Collection<Capability> caps)
Deprecated.Adds the capabilities of this file system.- Specified by:
addCapabilities
in classAbstractFileSystem
- Parameters:
caps
- collections of Capabilities, can be immutable.
-
closeCommunicationLink
public void closeCommunicationLink()
Deprecated.Description copied from class:AbstractFileSystem
Closes the underlying link used to access the files.- Overrides:
closeCommunicationLink
in classAbstractFileSystem
- Since:
- 2.0
-
createFile
protected FileObject createFile(AbstractFileName name) throws java.lang.Exception
Deprecated.Creates a file object. This method is called only if the requested file is not cached.- Specified by:
createFile
in 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.
-
getClient
protected org.apache.commons.httpclient.HttpClient getClient()
Deprecated.Gets the HTTP client.- Returns:
- the HttpClient.
-
-