public class DbxFileSystemConfigBuilder
extends org.apache.commons.vfs2.FileSystemConfigBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_TOKEN
Variable name.
|
static java.lang.String |
CHUNK_SIZE
Variable name.
|
static java.lang.String |
DISPLAY_NAME
Variable name.
|
protected static DbxFileSystemConfigBuilder |
sharedInstance
Shared
DbxFileSystemConfigBuilder instance. |
protected VFSLib |
vfsLib
The parental object.
|
Constructor and Description |
---|
DbxFileSystemConfigBuilder()
Constructor method.
|
DbxFileSystemConfigBuilder(VFSLib vfslib)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Dropbox access token.
|
java.lang.String |
getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Dropbox account display name.
|
java.lang.Integer |
getChunkSize(org.apache.commons.vfs2.FileSystemOptions options)
Getter for the chunk size in bytes used for uploading.
|
protected java.lang.Class<? extends org.apache.commons.vfs2.FileSystem> |
getConfigClass()
Provides the file system class to be configured by this builder.
|
static DbxFileSystemConfigBuilder |
getSharedInstance()
Provides the shared instance of the factory implementation.
|
void |
setAccessToken(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.String token)
Setter for Dropbox access token.
|
void |
setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.String name)
Setter for Dropbox account display name.
|
void |
setChunkSize(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.Integer chunksize)
Setter for the chunk size in bytes used for uploading.
|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setRootURI
protected static DbxFileSystemConfigBuilder sharedInstance
DbxFileSystemConfigBuilder
instance.public static final java.lang.String DISPLAY_NAME
public static final java.lang.String ACCESS_TOKEN
public static final java.lang.String CHUNK_SIZE
protected VFSLib vfsLib
public DbxFileSystemConfigBuilder()
VFSLib
class and its resource bundle.
public DbxFileSystemConfigBuilder(VFSLib vfslib)
vfslib
- The parental object, shared instance if null
public static DbxFileSystemConfigBuilder getSharedInstance()
protected java.lang.Class<? extends org.apache.commons.vfs2.FileSystem> getConfigClass()
getConfigClass
in class org.apache.commons.vfs2.FileSystemConfigBuilder
public void setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options, java.lang.String name)
options
- The optionsname
- The display namepublic java.lang.String getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setAccessToken(org.apache.commons.vfs2.FileSystemOptions options, java.lang.String token)
options
- The optionstoken
- The access tokenpublic java.lang.String getAccessToken(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setChunkSize(org.apache.commons.vfs2.FileSystemOptions options, java.lang.Integer chunksize)
options
- The optionschunksize
- The chunk size, must be >= 1java.lang.IllegalArgumentException
- If the chunk size is invalidpublic java.lang.Integer getChunkSize(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
Copyright © 2005-2014 Leisenfels UG. All rights reserved.