public class DbxClientWrapper extends Object implements ClientWrapper
| Constructor and Description |
|---|
DbxClientWrapper()
Constructor method (do not use).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
disconnectClient()
Let's the underlying client disconnect from the server.
|
com.dropbox.core.v2.DbxClientV2 |
getClient()
Provides access to the internal Dropbox 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.
|
static DbxClientWrapper |
getDbxClientWrapper(org.apache.commons.vfs2.provider.GenericFileName root,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
DbxFileProvider 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 |
unlockDbxClientWrapper(DbxClientWrapper wrapper)
Releases the given client from the pool.
|
public DbxClientWrapper()
throws InstantiationException
InstantiationException - Error indicationpublic com.dropbox.core.v2.DbxClientV2 getClient()
public boolean disconnectClient()
disconnectClient in interface ClientWrapperpublic String getURLID()
Something like "dropbox://user@dropbox.com".
getURLID in interface ClientWrapperpublic static DbxClientWrapper getDbxClientWrapper(org.apache.commons.vfs2.provider.GenericFileName root, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib, DbxFileProvider 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 unlockDbxClientWrapper(DbxClientWrapper 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.