Package org.apache.commons.vfs2.impl
Class DefaultFileSystemConfigBuilder
- java.lang.Object
-
- org.apache.commons.vfs2.FileSystemConfigBuilder
-
- org.apache.commons.vfs2.impl.DefaultFileSystemConfigBuilder
-
public class DefaultFileSystemConfigBuilder extends FileSystemConfigBuilder
Default options usable for all file systems.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
DefaultFileSystemConfigBuilder.DefaultFileSystem
Dummy class that implements FileSystem.
-
Field Summary
Fields Modifier and Type Field Description private static DefaultFileSystemConfigBuilder
BUILDER
The default FileSystemConfigBuilder
-
Constructor Summary
Constructors Constructor Description DefaultFileSystemConfigBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<? extends FileSystem>
getConfigClass()
Gets the target of this configuration.static DefaultFileSystemConfigBuilder
getInstance()
Gets the singleton builder.UserAuthenticator
getUserAuthenticator(FileSystemOptions opts)
void
setUserAuthenticator(FileSystemOptions opts, UserAuthenticator userAuthenticator)
Sets the user authenticator to get authentication informations.-
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, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
-
-
-
Field Detail
-
BUILDER
private static final DefaultFileSystemConfigBuilder BUILDER
The default FileSystemConfigBuilder
-
-
Method Detail
-
getInstance
public static DefaultFileSystemConfigBuilder getInstance()
Gets the singleton builder.- Returns:
- the singleton builder.
-
setUserAuthenticator
public void setUserAuthenticator(FileSystemOptions opts, UserAuthenticator userAuthenticator)
Sets the user authenticator to get authentication informations.- Parameters:
opts
- The FileSystemOptions.userAuthenticator
- The UserAuthenticator.
-
getUserAuthenticator
public UserAuthenticator getUserAuthenticator(FileSystemOptions opts)
- Parameters:
opts
- The FileSystemOptions.- Returns:
- The UserAuthenticator.
- See Also:
setUserAuthenticator(org.apache.commons.vfs2.FileSystemOptions, org.apache.commons.vfs2.UserAuthenticator)
-
getConfigClass
protected java.lang.Class<? extends FileSystem> getConfigClass()
Description copied from class:FileSystemConfigBuilder
Gets the target of this configuration.- Specified by:
getConfigClass
in classFileSystemConfigBuilder
- Returns:
- the specific file system class
-
-