public final class VFSLib
extends java.lang.Object
| Constructor and Description |
|---|
VFSLib()
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
S3FileProvider |
addProviderAmazonS3(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager)
Configures the given file system manager to use the VFSLib provider for Amazon® S3 (convenience method).
|
DbxFileProvider |
addProviderDropbox(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager,
java.lang.Object appinfo,
java.lang.Object reqconfig)
Configures the given file system manager to use the VFSLib provider for Dropbox®.
|
DbxFileProvider |
addProviderDropbox(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager,
java.lang.String appkey,
java.lang.String appsecret,
java.lang.String clientidentifier,
java.lang.String language)
Configures the given file system manager to use the VFSLib provider for Dropbox® (convenience method).
|
GDriveFileProvider |
addProviderGoogleDrive(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager,
java.lang.Object authflow,
java.lang.String appname,
java.lang.String redirecturi)
Configures the given file system manager to use the VFSLib provider for Google® Drive.
|
GDriveFileProvider |
addProviderGoogleDrive(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager,
java.lang.String clientid,
java.lang.String clientsecret,
java.lang.String appname,
java.lang.String redirecturi)
Configures the given file system manager to use the VFSLib provider for Google® Drive (convenience method).
|
java.lang.String |
getSchemeAmazonS3()
Getter method for the VFSLib Amazon® S3 scheme.
|
java.lang.String |
getSchemeDropbox()
Getter method for the VFSLib Dropbox® scheme.
|
java.lang.String |
getSchemeGoogleDrive()
Getter method for the VFSLib Google® Drive scheme.
|
static VFSLib |
getSharedInstance()
Provides the shared instance of the
VFSLib. |
void |
setLicenseFile(java.io.File licensefile)
Setter method for the VFSLib license key, imported from a local file here.
|
void |
setLicenseKey(java.lang.String licensekey)
Setter method for the VFSLib license key.
|
void |
setLicenseURL(java.net.URL licenseurl)
Setter method for the VFSLib license key, imported from URL/classpath here.
|
void |
setSchemeAmazonS3(java.lang.String scheme)
Setter method for the VFSLib Amazon® S3 scheme.
|
void |
setSchemeDropbox(java.lang.String scheme)
Setter method for the VFSLib Dropbox® scheme.
|
void |
setSchemeGoogleDrive(java.lang.String scheme)
Setter method for the VFSLib Google® Drive scheme.
|
public static VFSLib getSharedInstance()
VFSLib.
public void setLicenseKey(java.lang.String licensekey)
licensekey - The VFSLib license keyjava.lang.IllegalArgumentException - If the license key cannot be usedpublic void setLicenseFile(java.io.File licensefile)
licensefile - The VFSLib license key filejava.lang.IllegalArgumentException - If the file is invalidpublic void setLicenseURL(java.net.URL licenseurl)
licenseurl - The VFSLib license key URLjava.lang.IllegalArgumentException - If the file is invalidpublic void setSchemeDropbox(java.lang.String scheme)
scheme - The schemejava.lang.NullPointerException - If the scheme is null or emptyjava.lang.IllegalArgumentException - If the license key cannot be usedpublic java.lang.String getSchemeDropbox()
public DbxFileProvider addProviderDropbox(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager, java.lang.String appkey, java.lang.String appsecret, java.lang.String clientidentifier, java.lang.String language)
setSchemeDropbox() (default is "dropbox").
manager - The VFSLib license key (required)appkey - The Dropbox® application info (required for DbxAppInfo)appsecret - The Dropbox® request configuration (required for DbxAppInfo)clientidentifier - The Dropbox® client identifier (required for DbxRequestConfig)language - The Dropbox® language (required for DbxRequestConfig)null if an error occurredjava.lang.NullPointerException - If a parameter is nulljava.lang.IllegalStateException - If the license key has not been set properlypublic DbxFileProvider addProviderDropbox(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager, java.lang.Object appinfo, java.lang.Object reqconfig)
setSchemeDropbox() (default is "dropbox").
manager - The VFSLib license key (required)appinfo - The Dropbox® application info (required, type is com.dropbox.core.DbxAppInfo)reqconfig - The Dropbox® request configuration (required, type is com.dropbox.core.DbxRequestConfig)null if an error occurredjava.lang.NullPointerException - If a parameter is nulljava.lang.IllegalStateException - If the license key has not been set properlyjava.lang.IllegalArgumentException - If a parameter is not of the expected typepublic void setSchemeGoogleDrive(java.lang.String scheme)
scheme - The schemejava.lang.NullPointerException - If the scheme is null or emptyjava.lang.IllegalArgumentException - If the license key cannot be usedpublic java.lang.String getSchemeGoogleDrive()
public GDriveFileProvider addProviderGoogleDrive(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager, java.lang.String clientid, java.lang.String clientsecret, java.lang.String appname, java.lang.String redirecturi)
getSchemeGoogleDrive()
(default is "gdrive").
manager - The VFSLib license key (required)clientid - The Google® Drive client ID (required)clientsecret - The Google® Drive client secret (required)appname - The application name (required)redirecturi - The Google® Drive redirect URI (required)null if an error occurredjava.lang.NullPointerException - If a parameter is nulljava.lang.IllegalStateException - If the license key has not been set properlypublic GDriveFileProvider addProviderGoogleDrive(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager, java.lang.Object authflow, java.lang.String appname, java.lang.String redirecturi)
getSchemeGoogleDrive()
(default is "gdrive").
manager - The VFSLib license key (required)authflow - The Google® authorization flow (required)appname - The application name (required)redirecturi - The Google® Drive redirect URI (required)null if an error occurredjava.lang.NullPointerException - If a parameter is nulljava.lang.IllegalStateException - If the license key has not been set properlypublic void setSchemeAmazonS3(java.lang.String scheme)
scheme - The schemejava.lang.NullPointerException - If the scheme is null or emptyjava.lang.IllegalArgumentException - If the license key cannot be usedpublic java.lang.String getSchemeAmazonS3()
public S3FileProvider addProviderAmazonS3(org.apache.commons.vfs2.impl.DefaultFileSystemManager manager)
setSchemeAmazonS3() (default is "s3").
manager - The VFSLib license key (required)null if an error occurredjava.lang.NullPointerException - If a parameter is nulljava.lang.IllegalStateException - If the license key has not been set properlyCopyright © 2005-2013 Leisenfels UG. All rights reserved.