public class GDriveFileSystemConfigBuilder
extends org.apache.commons.vfs2.FileSystemConfigBuilder
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_TOKEN
Variable name.
|
static String |
CONNECT_TIMEOUT_SECONDS
Variable name.
|
static String |
DISPLAY_NAME
Variable name.
|
static String |
READ_TIMEOUT_SECONDS
Variable name.
|
static String |
USE_TRASH
Variable name.
|
Constructor and Description |
---|
GDriveFileSystemConfigBuilder()
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Google Drive access token.
|
String |
getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Google Drive account display name.
|
Integer |
getConnectTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options)
Getter for connect timeout in seconds.
|
Integer |
getReadTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options)
Getter for read timeout in seconds.
|
static GDriveFileSystemConfigBuilder |
getSharedInstance()
Provides the shared instance of the factory implementation.
|
Boolean |
getUseTrash(org.apache.commons.vfs2.FileSystemOptions options)
Getter for delete mode: put into trash (may be restored) or delete permanently.
|
void |
setAccessToken(org.apache.commons.vfs2.FileSystemOptions options,
String token)
Setter for Google Drive access token.
|
void |
setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options,
String name)
Setter for Google Drive account display name.
|
void |
setConnectTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options,
Integer timeout)
Setter for connect timeout in seconds.
|
void |
setReadTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options,
Integer timeout)
Setter for read timeout in seconds.
|
void |
setUseTrash(org.apache.commons.vfs2.FileSystemOptions options,
Boolean trash)
Setter for delete mode: put into trash (may be restored) or delete permanently.
|
public static final String DISPLAY_NAME
public static final String ACCESS_TOKEN
public static final String USE_TRASH
public static final String CONNECT_TIMEOUT_SECONDS
public static final String READ_TIMEOUT_SECONDS
public GDriveFileSystemConfigBuilder()
public static GDriveFileSystemConfigBuilder getSharedInstance()
public void setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options, String name)
options
- The optionsname
- The display namepublic String getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setAccessToken(org.apache.commons.vfs2.FileSystemOptions options, String token)
options
- The optionstoken
- The access tokenpublic String getAccessToken(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
public void setUseTrash(org.apache.commons.vfs2.FileSystemOptions options, Boolean trash)
options
- The optionstrash
- Move to trash?public Boolean getUseTrash(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
.public void setConnectTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options, Integer timeout)
options
- The optionstimeout
- Secondspublic Integer getConnectTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
.public void setReadTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options, Integer timeout)
options
- The optionstimeout
- Secondspublic Integer getReadTimeoutSeconds(org.apache.commons.vfs2.FileSystemOptions options)
options
- The optionsnull
.
Copyright © 2005-2024 Leisenfels GmbH. All rights reserved.