public class S3FileSystemConfigBuilder
extends org.apache.commons.vfs2.FileSystemConfigBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_KEY_ID
Variable name.
|
static java.lang.String |
BUCKET_NAME
Variable name.
|
static java.lang.String |
BUCKET_URI
Variable name.
|
static java.lang.String |
DISPLAY_NAME
Variable name.
|
static java.lang.String |
SECRET_KEY
Variable name.
|
protected static S3FileSystemConfigBuilder |
sharedInstance
Shared
DbxFileSystemConfigBuilder instance. |
protected VFSLib |
vfsLib
The parental object.
|
Constructor and Description |
---|
S3FileSystemConfigBuilder()
Constructor method.
|
S3FileSystemConfigBuilder(VFSLib vfslib)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessKeyID(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Amazon S3 access key ID.
|
java.lang.String |
getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Amazon S3 account display name.
|
java.lang.String |
getBucketName(org.apache.commons.vfs2.FileSystemOptions options)
Getter for the name of the Amazon S3 bucket.
|
protected java.lang.Class<? extends org.apache.commons.vfs2.FileSystem> |
getConfigClass()
Provides the file system class to be configured by this builder.
|
java.lang.String |
getSecretKey(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Amazon S3 secret key.
|
static S3FileSystemConfigBuilder |
getSharedInstance()
Provides the shared instance of the factory implementation.
|
java.lang.Boolean |
getUseBucketURI(org.apache.commons.vfs2.FileSystemOptions options)
Getter for URI mode: use bucket name or host.
|
void |
setAccessKeyID(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.String token)
Setter for Amazon S3 access key ID.
|
void |
setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.String name)
Setter for Amazon S3 account display name.
|
void |
setBucketName(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.String name)
Setter for the name of the Amazon S3 bucket.
|
void |
setSecretKey(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.String token)
Setter for Amazon S3 secret key.
|
void |
setUseBucketURI(org.apache.commons.vfs2.FileSystemOptions options,
java.lang.Boolean enable)
Setter for URI mode: use bucket name or host.
|
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 S3FileSystemConfigBuilder sharedInstance
DbxFileSystemConfigBuilder
instance.public static final java.lang.String DISPLAY_NAME
public static final java.lang.String ACCESS_KEY_ID
public static final java.lang.String SECRET_KEY
public static final java.lang.String BUCKET_NAME
public static final java.lang.String BUCKET_URI
protected VFSLib vfsLib
public S3FileSystemConfigBuilder()
VFSLib
class and its resource bundle.
public S3FileSystemConfigBuilder(VFSLib vfslib)
vfslib
- The parental object, shared instance if null
public static S3FileSystemConfigBuilder 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 setAccessKeyID(org.apache.commons.vfs2.FileSystemOptions options, java.lang.String token)
options
- The optionstoken
- The access key IDpublic java.lang.String getAccessKeyID(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setSecretKey(org.apache.commons.vfs2.FileSystemOptions options, java.lang.String token)
options
- The optionstoken
- The secret keypublic java.lang.String getSecretKey(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setBucketName(org.apache.commons.vfs2.FileSystemOptions options, java.lang.String name)
options
- The optionsname
- The display namepublic java.lang.String getBucketName(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setUseBucketURI(org.apache.commons.vfs2.FileSystemOptions options, java.lang.Boolean enable)
options
- The optionsenable
- Use bucket name?public java.lang.Boolean getUseBucketURI(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
.Copyright © 2005-2014 Leisenfels UG. All rights reserved.