Class WebdavFileSystemConfigBuilder
java.lang.Object
org.apache.commons.vfs2.FileSystemConfigBuilder
org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
org.apache.commons.vfs2.provider.webdav.WebdavFileSystemConfigBuilder
public final class WebdavFileSystemConfigBuilder
extends org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
Configuration options for WebDav.
- Since:
- 2.0
-
Field Summary
Fields inherited from class org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
KEY_FOLLOW_REDIRECT, KEY_USER_AGENT
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends org.apache.commons.vfs2.FileSystem>
getCreatorName
(org.apache.commons.vfs2.FileSystemOptions opts) Gets the user name to be associated with changes to the file.boolean
getFollowRedirect
(org.apache.commons.vfs2.FileSystemOptions opts) Gets whether to follow redirects for the connection.static org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
Gets the singleton builder.boolean
isVersioning
(org.apache.commons.vfs2.FileSystemOptions opts) The cookies to add to the request.void
setCreatorName
(org.apache.commons.vfs2.FileSystemOptions opts, String creatorName) The user name to be associated with changes to the file.void
setVersioning
(org.apache.commons.vfs2.FileSystemOptions opts, boolean versioning) Whether to use versioning.Methods inherited from class org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
getConnectionTimeout, getConnectionTimeoutDuration, getCookies, getMaxConnectionsPerHost, getMaxTotalConnections, getProxyAuthenticator, getProxyHost, getProxyPort, getSoTimeout, getSoTimeoutDuration, getUrlCharset, getUserAgent, isPreemptiveAuth, setConnectionTimeout, setConnectionTimeout, setCookies, setFollowRedirect, setMaxConnectionsPerHost, setMaxTotalConnections, setPreemptiveAuth, setProxyAuthenticator, setProxyHost, setProxyPort, setSoTimeout, setSoTimeout, setUrlCharset, setUserAgent
Methods inherited from class org.apache.commons.vfs2.FileSystemConfigBuilder
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getParamOrDefault, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
Method Details
-
getInstance
Gets the singleton builder.- Returns:
- the singleton builder.
-
getConfigClass
- Overrides:
getConfigClass
in classorg.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
- Returns:
- The WebDAV FileSystem Class object.
-
getCreatorName
Gets the user name to be associated with changes to the file.- Parameters:
opts
- The FileSystem options- Returns:
- The creatorName.
-
getFollowRedirect
Gets whether to follow redirects for the connection.- Overrides:
getFollowRedirect
in classorg.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder
- Parameters:
opts
- The FileSystem options.- Returns:
true
to follow redirects,false
not to.- Since:
- 2.1
- See Also:
-
HttpFileSystemConfigBuilder.setFollowRedirect(org.apache.commons.vfs2.FileSystemOptions, boolean)
-
isVersioning
The cookies to add to the request.- Parameters:
opts
- The FileSystem options.- Returns:
- true if versioning is enabled.
-
setCreatorName
The user name to be associated with changes to the file.- Parameters:
opts
- The FileSystem optionscreatorName
- The creator name to be associated with the file.
-
setVersioning
Whether to use versioning.- Parameters:
opts
- The FileSystem options.versioning
- true if versioning should be enabled.
-