public class GDriveFileProvider
extends org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider
This class coordinates the whole Google Drive functionality used by VFS2.
| Constructor and Description |
|---|
GDriveFileProvider()
Constructor method (do not use).
|
GDriveFileProvider(Object authflow,
String appname,
VFSLib vfslib)
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
findFileclose, closeFileSystem, createFileSystem, freeUnusedResources, parseUripublic GDriveFileProvider()
throws InstantiationException
InstantiationException - Error indicationpublic GDriveFileProvider(Object authflow, String appname, VFSLib vfslib)
authflow - The Google authorization flow (required, type is com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow)appname - The application name (required)vfslib - The parental objectNullPointerException - If parameters are nullIllegalArgumentException - If a parameter is not of the expected typepublic com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow getAuthFlow()
public String getApplicationName()
public org.apache.commons.vfs2.FileSystemConfigBuilder getConfigBuilder()
getConfigBuilder in interface org.apache.commons.vfs2.provider.FileProvidergetConfigBuilder in class org.apache.commons.vfs2.provider.AbstractFileProviderpublic Collection<org.apache.commons.vfs2.Capability> getCapabilities()
Copyright © 2005-2026 Leisenfels GmbH. All rights reserved.