org.apache.commons.vfs2
Class FileSystemConfigBuilder
java.lang.Object
org.apache.commons.vfs2.FileSystemConfigBuilder
- Direct Known Subclasses:
- DefaultFileSystemConfigBuilder, FtpFileSystemConfigBuilder, FtpsFileSystemConfigBuilder, HttpFileSystemConfigBuilder, RamFileSystemConfigBuilder, ResourceFileSystemConfigBuilder, SftpFileSystemConfigBuilder
public abstract class FileSystemConfigBuilder
- extends java.lang.Object
Abstract class which has the right to fill FileSystemOptions.
- Author:
- Commons VFS team
Method Summary |
protected java.lang.Boolean |
getBoolean(FileSystemOptions opts,
java.lang.String name)
|
protected boolean |
getBoolean(FileSystemOptions opts,
java.lang.String name,
boolean defaultValue)
|
protected java.lang.Boolean |
getBoolean(FileSystemOptions opts,
java.lang.String name,
java.lang.Boolean defaultValue)
|
protected java.lang.Byte |
getByte(FileSystemOptions opts,
java.lang.String name)
|
protected byte |
getByte(FileSystemOptions opts,
java.lang.String name,
byte defaultValue)
|
protected java.lang.Byte |
getByte(FileSystemOptions opts,
java.lang.String name,
java.lang.Byte defaultValue)
|
protected java.lang.Character |
getCharacter(FileSystemOptions opts,
java.lang.String name)
|
protected char |
getCharacter(FileSystemOptions opts,
java.lang.String name,
char defaultValue)
|
protected java.lang.Character |
getCharacter(FileSystemOptions opts,
java.lang.String name,
java.lang.Character defaultValue)
|
protected abstract java.lang.Class<? extends FileSystem> |
getConfigClass()
|
protected java.lang.Double |
getDouble(FileSystemOptions opts,
java.lang.String name)
|
protected double |
getDouble(FileSystemOptions opts,
java.lang.String name,
double defaultValue)
|
protected java.lang.Double |
getDouble(FileSystemOptions opts,
java.lang.String name,
java.lang.Double defaultValue)
|
protected java.lang.Float |
getFloat(FileSystemOptions opts,
java.lang.String name)
|
protected float |
getFloat(FileSystemOptions opts,
java.lang.String name,
float defaultValue)
|
protected java.lang.Float |
getFloat(FileSystemOptions opts,
java.lang.String name,
java.lang.Float defaultValue)
|
protected java.lang.Integer |
getInteger(FileSystemOptions opts,
java.lang.String name)
|
protected int |
getInteger(FileSystemOptions opts,
java.lang.String name,
int defaultValue)
|
protected java.lang.Integer |
getInteger(FileSystemOptions opts,
java.lang.String name,
java.lang.Integer defaultValue)
|
protected java.lang.Long |
getLong(FileSystemOptions opts,
java.lang.String name)
|
protected long |
getLong(FileSystemOptions opts,
java.lang.String name,
long defaultValue)
|
protected java.lang.Long |
getLong(FileSystemOptions opts,
java.lang.String name,
java.lang.Long defaultValue)
|
protected java.lang.Object |
getParam(FileSystemOptions opts,
java.lang.String name)
|
java.lang.String |
getRootURI(FileSystemOptions opts)
Return the root URI of the file system. |
protected java.lang.Short |
getShort(FileSystemOptions opts,
java.lang.String name)
|
protected short |
getShort(FileSystemOptions opts,
java.lang.String name,
short defaultValue)
|
protected java.lang.Short |
getShort(FileSystemOptions opts,
java.lang.String name,
java.lang.Short defaultValue)
|
protected java.lang.String |
getString(FileSystemOptions opts,
java.lang.String name)
|
protected java.lang.String |
getString(FileSystemOptions opts,
java.lang.String name,
java.lang.String defaultValue)
|
protected boolean |
hasObject(FileSystemOptions opts,
java.lang.String name)
|
protected boolean |
hasParam(FileSystemOptions opts,
java.lang.String name)
|
protected void |
setParam(FileSystemOptions opts,
java.lang.String name,
java.lang.Object value)
|
void |
setRootURI(FileSystemOptions opts,
java.lang.String rootURI)
The root URI of the file system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemConfigBuilder
protected FileSystemConfigBuilder()
FileSystemConfigBuilder
protected FileSystemConfigBuilder(java.lang.String component)
- Since:
- 2.0
setRootURI
public void setRootURI(FileSystemOptions opts,
java.lang.String rootURI)
- The root URI of the file system.
- Parameters:
opts
- The FileSystem optionsrootURI
- The creator name to be associated with the file.- Since:
- 2.0
getRootURI
public java.lang.String getRootURI(FileSystemOptions opts)
- Return the root URI of the file system.
- Parameters:
opts
- The FileSystem options
- Returns:
- The root URI.
- Since:
- 2.0
setParam
protected void setParam(FileSystemOptions opts,
java.lang.String name,
java.lang.Object value)
getParam
protected java.lang.Object getParam(FileSystemOptions opts,
java.lang.String name)
hasParam
protected boolean hasParam(FileSystemOptions opts,
java.lang.String name)
hasObject
protected boolean hasObject(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getBoolean
protected java.lang.Boolean getBoolean(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getBoolean
protected boolean getBoolean(FileSystemOptions opts,
java.lang.String name,
boolean defaultValue)
- Since:
- 2.0
getBoolean
protected java.lang.Boolean getBoolean(FileSystemOptions opts,
java.lang.String name,
java.lang.Boolean defaultValue)
- Since:
- 2.0
getByte
protected java.lang.Byte getByte(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getByte
protected byte getByte(FileSystemOptions opts,
java.lang.String name,
byte defaultValue)
- Since:
- 2.0
getByte
protected java.lang.Byte getByte(FileSystemOptions opts,
java.lang.String name,
java.lang.Byte defaultValue)
- Since:
- 2.0
getCharacter
protected java.lang.Character getCharacter(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getCharacter
protected char getCharacter(FileSystemOptions opts,
java.lang.String name,
char defaultValue)
- Since:
- 2.0
getCharacter
protected java.lang.Character getCharacter(FileSystemOptions opts,
java.lang.String name,
java.lang.Character defaultValue)
- Since:
- 2.0
getDouble
protected java.lang.Double getDouble(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getDouble
protected double getDouble(FileSystemOptions opts,
java.lang.String name,
double defaultValue)
- Since:
- 2.0
getDouble
protected java.lang.Double getDouble(FileSystemOptions opts,
java.lang.String name,
java.lang.Double defaultValue)
- Since:
- 2.0
getFloat
protected java.lang.Float getFloat(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getFloat
protected float getFloat(FileSystemOptions opts,
java.lang.String name,
float defaultValue)
- Since:
- 2.0
getFloat
protected java.lang.Float getFloat(FileSystemOptions opts,
java.lang.String name,
java.lang.Float defaultValue)
- Since:
- 2.0
getInteger
protected java.lang.Integer getInteger(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getInteger
protected int getInteger(FileSystemOptions opts,
java.lang.String name,
int defaultValue)
- Since:
- 2.0
getInteger
protected java.lang.Integer getInteger(FileSystemOptions opts,
java.lang.String name,
java.lang.Integer defaultValue)
- Since:
- 2.0
getLong
protected java.lang.Long getLong(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getLong
protected long getLong(FileSystemOptions opts,
java.lang.String name,
long defaultValue)
- Since:
- 2.0
getLong
protected java.lang.Long getLong(FileSystemOptions opts,
java.lang.String name,
java.lang.Long defaultValue)
- Since:
- 2.0
getShort
protected java.lang.Short getShort(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getShort
protected short getShort(FileSystemOptions opts,
java.lang.String name,
short defaultValue)
- Since:
- 2.0
getShort
protected java.lang.Short getShort(FileSystemOptions opts,
java.lang.String name,
java.lang.Short defaultValue)
- Since:
- 2.0
getString
protected java.lang.String getString(FileSystemOptions opts,
java.lang.String name)
- Since:
- 2.0
getString
protected java.lang.String getString(FileSystemOptions opts,
java.lang.String name,
java.lang.String defaultValue)
- Since:
- 2.0
getConfigClass
protected abstract java.lang.Class<? extends FileSystem> getConfigClass()