public final class GDriveFileProvider
extends org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Collection<org.apache.commons.vfs2.Capability> |
capabilities
The provider's capabilities.
|
| Constructor and Description |
|---|
GDriveFileProvider()
Constructor method (do not use).
|
GDriveFileProvider(java.lang.Object authflow,
java.lang.String appname,
java.lang.String redirecturi,
VFSLib vfslib)
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.vfs2.FileSystem |
doCreateFileSystem(org.apache.commons.vfs2.FileName name,
org.apache.commons.vfs2.FileSystemOptions options)
Creates a Google® Drive file system.
|
java.lang.String |
getApplicationName()
Return the name of the application.
|
com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow |
getAuthFlow()
Provides the provider's Google® Drive authorization flow.
|
java.util.Collection<org.apache.commons.vfs2.Capability> |
getCapabilities()
Provides the provider's capabilities.
|
org.apache.commons.vfs2.FileSystemConfigBuilder |
getConfigBuilder()
Provides the builder instance responsible for proper file system options.
|
java.lang.String |
getRedirectURI()
Provides the provider's Google® Drive redirect URI.
|
findFile, findFile, getFileSystemaddFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getFileNameParser, parseUri, setFileNameParseraddComponent, removeComponentprotected static final java.util.Collection<org.apache.commons.vfs2.Capability> capabilities
public GDriveFileProvider()
throws java.lang.InstantiationException
java.lang.InstantiationException - Error indicationpublic GDriveFileProvider(java.lang.Object authflow,
java.lang.String appname,
java.lang.String redirecturi,
VFSLib vfslib)
authflow - The Google® authorization flow (required, type is com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow)appname - The application name (required)redirecturi - The Google® redirect URI (required)vfslib - The parental objectjava.lang.NullPointerException - If parameters are nulljava.lang.IllegalStateException - If the license key has not been set properlyjava.lang.IllegalArgumentException - If a parameter is not of the expected typepublic com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow getAuthFlow()
public java.lang.String getApplicationName()
public java.lang.String getRedirectURI()
protected org.apache.commons.vfs2.FileSystem doCreateFileSystem(org.apache.commons.vfs2.FileName name,
org.apache.commons.vfs2.FileSystemOptions options)
throws org.apache.commons.vfs2.FileSystemException
doCreateFileSystem in class org.apache.commons.vfs2.provider.AbstractOriginatingFileProvidername - The file nameoptions - The file system optionsorg.apache.commons.vfs2.FileSystemException - If something goes wrongpublic org.apache.commons.vfs2.FileSystemConfigBuilder getConfigBuilder()
getConfigBuilder in interface org.apache.commons.vfs2.provider.FileProvidergetConfigBuilder in class org.apache.commons.vfs2.provider.AbstractFileProviderpublic java.util.Collection<org.apache.commons.vfs2.Capability> getCapabilities()
Copyright © 2005-2013 Leisenfels UG. All rights reserved.