Class Webdav4FileSystem
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.http4.Http4FileSystem
org.apache.commons.vfs2.provider.webdav4.Webdav4FileSystem
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileSystem,- VfsComponent
A WebDAV file system based on HTTP4.
- Since:
- 2.5.0
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedWebdav4FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection<Capability> caps) Returns the capabilities of this file system.protected FileObjectcreateFile(AbstractFileName name) Creates a file object.Gets a URLStreamHandler.Methods inherited from class org.apache.commons.vfs2.provider.http4.Http4FileSystemdoCloseCommunicationLink, getHttpClient, getHttpClientContext, getInternalBaseURIMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystemaddJunction, 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, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, setContext, setLogger
- 
Constructor Details- 
Webdav4FileSystemprotected Webdav4FileSystem(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext) Constructs a new instance.- Parameters:
- rootName- root base name
- fileSystemOptions- file system options
- httpClient-- HttpClientinstance
- httpClientContext-- HttpClientContextinstance
 
 
- 
- 
Method Details- 
addCapabilitiesReturns the capabilities of this file system.- Overrides:
- addCapabilitiesin class- Http4FileSystem
- Parameters:
- caps- The Capabilities to add.
 
- 
createFileCreates a file object. This method is called only if the requested file is not cached.- Overrides:
- createFilein class- Http4FileSystem
- Parameters:
- name- the FileName.
- Returns:
- The created FileObject.
- Throws:
- Exception
 
- 
getURLStreamHandlerGets a URLStreamHandler.- Returns:
- The URLStreamHandler.
 
 
-