public class GDriveClientWrapper extends Object implements ClientWrapper
| Constructor and Description |
|---|
GDriveClientWrapper()
Constructor method (do not use).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
disconnectClient()
Let's the underlying client disconnect from the server.
|
com.google.api.services.drive.Drive |
getClient()
Provides access to the internal Google Drive client.
|
static String |
getClientURLID(org.apache.commons.vfs2.provider.GenericFileName root,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib)
Provides a textual representation for this connection.
|
org.apache.commons.vfs2.FileSystemOptions |
getFileSystemOptions()
Returns the options for this file system.
|
static GDriveClientWrapper |
getGDriveClientWrapper(org.apache.commons.vfs2.provider.GenericFileName root,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
GDriveFileProvider provider)
Gets an idle client from the pool or creates a fresh new instance.
|
String |
getURLID()
Provides the unique URL identifier used to manage this client instance.
|
String |
toString()
Provides a textual representation.
|
static void |
unlockGDriveClientWrapper(GDriveClientWrapper wrapper)
Releases the given client from the pool.
|
public GDriveClientWrapper()
throws InstantiationException
InstantiationException - Error indicationpublic com.google.api.services.drive.Drive getClient()
public org.apache.commons.vfs2.FileSystemOptions getFileSystemOptions()
public boolean disconnectClient()
disconnectClient in interface ClientWrapperpublic String getURLID()
Something like "gdrive://user@drive.google.com".
getURLID in interface ClientWrapperpublic static GDriveClientWrapper getGDriveClientWrapper(org.apache.commons.vfs2.provider.GenericFileName root, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib, GDriveFileProvider provider) throws org.apache.commons.vfs2.FileSystemException
root - The root pathoptions - The file system optionsvfslib - The parental object, shared instance if nullprovider - The file providerorg.apache.commons.vfs2.FileSystemException - If an I/O error occurspublic static void unlockGDriveClientWrapper(GDriveClientWrapper wrapper)
wrapper - The wrapperpublic String toString()
public static String getClientURLID(org.apache.commons.vfs2.provider.GenericFileName root, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib)
root - The root pathoptions - The file system optionsvfslib - The parental object, shared instance if null
Copyright © 2005-2026 Leisenfels GmbH. All rights reserved.