|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Uses of CStorageException in net.netheos.pcsapi.exceptions |
|---|
| Subclasses of CStorageException in net.netheos.pcsapi.exceptions | |
|---|---|
class |
CAuthenticationException
http 401 error. |
class |
CFileNotFoundException
|
class |
CHttpException
Thrown when provider server answers non OK answers. |
class |
CInvalidFileTypeException
Thrown when performing an operation on a folder when a blob is expected, or when operating on a blob and a folder is expected. |
class |
CRetriableException
Thrown by RequestInvoker validation method, when request has failed but should be retried. |
| Uses of CStorageException in net.netheos.pcsapi.models |
|---|
| Methods in net.netheos.pcsapi.models that throw CStorageException | ||
|---|---|---|
|
RetryStrategy.invokeRetry(Callable<T> invoker)
Main method to be called by user of this class : calls Callable.call() until success, non retriable error
or max trials has been reached. |
|
| Uses of CStorageException in net.netheos.pcsapi.oauth |
|---|
| Methods in net.netheos.pcsapi.oauth that throw CStorageException | |
|---|---|
void |
OAuth2SessionManager.refreshToken()
Refreshes access token after expiration (before sending request) thanks to the refresh token. |
| Uses of CStorageException in net.netheos.pcsapi.providers.cloudme |
|---|
| Methods in net.netheos.pcsapi.providers.cloudme that throw CStorageException | |
|---|---|
boolean |
CloudMe.createFolder(CPath cpath)
|
boolean |
CloudMe.delete(CPath cpath)
|
void |
CloudMe.download(CDownloadRequest downloadRequest)
|
CFile |
CloudMe.getFile(CPath cpath)
|
CQuota |
CloudMe.getQuota()
|
String |
CloudMe.getUserId()
|
CFolderContent |
CloudMe.listFolder(CFolder folder)
|
CFolderContent |
CloudMe.listFolder(CPath cpath)
There are 3 main steps to list a folder: - generate the tree view of CloudMe storage - list all the subfolders - list all the blobs |
void |
CloudMe.upload(CUploadRequest ur)
|
| Uses of CStorageException in net.netheos.pcsapi.providers.dropbox |
|---|
| Methods in net.netheos.pcsapi.providers.dropbox that throw CStorageException | |
|---|---|
boolean |
Dropbox.createFolder(CPath cpath)
|
boolean |
Dropbox.delete(CPath cpath)
|
void |
Dropbox.download(CDownloadRequest downloadRequest)
|
CFile |
Dropbox.getFile(CPath cpath)
|
CQuota |
Dropbox.getQuota()
|
String |
Dropbox.getUserId()
|
CFolderContent |
Dropbox.listFolder(CFolder folder)
|
CFolderContent |
Dropbox.listFolder(CPath cpath)
|
void |
Dropbox.upload(CUploadRequest uploadRequest)
|
| Uses of CStorageException in net.netheos.pcsapi.providers.googledrive |
|---|
| Methods in net.netheos.pcsapi.providers.googledrive that throw CStorageException | |
|---|---|
boolean |
GoogleDrive.createFolder(CPath path)
|
boolean |
GoogleDrive.delete(CPath path)
|
void |
GoogleDrive.download(CDownloadRequest downloadRequest)
|
CFile |
GoogleDrive.getFile(CPath path)
|
CQuota |
GoogleDrive.getQuota()
|
String |
GoogleDrive.getUserId()
|
CFolderContent |
GoogleDrive.listFolder(CFolder folder)
|
CFolderContent |
GoogleDrive.listFolder(CPath path)
|
void |
GoogleDrive.upload(CUploadRequest uploadRequest)
|
| Uses of CStorageException in net.netheos.pcsapi.providers.hubic |
|---|
| Methods in net.netheos.pcsapi.providers.hubic that throw CStorageException | |
|---|---|
boolean |
Hubic.createFolder(CPath path)
|
boolean |
Hubic.delete(CPath path)
|
void |
Hubic.download(CDownloadRequest downloadRequest)
|
CFile |
Hubic.getFile(CPath path)
|
CQuota |
Hubic.getQuota()
|
String |
Hubic.getUserId()
|
CFolderContent |
Hubic.listFolder(CFolder folder)
|
CFolderContent |
Hubic.listFolder(CPath path)
|
void |
Hubic.upload(CUploadRequest uploadRequest)
|
| Uses of CStorageException in net.netheos.pcsapi.request |
|---|
| Methods in net.netheos.pcsapi.request that throw CStorageException | |
|---|---|
CResponse |
HttpRequestor.call()
|
CResponse |
SimpleHttpExecutor.execute(org.apache.http.client.methods.HttpUriRequest request)
|
CResponse |
HttpExecutor.execute(org.apache.http.client.methods.HttpUriRequest request)
Execute the request |
protected void |
RequestInvoker.validateResponse(T response)
|
void |
ResponseValidator.validateResponse(T response,
CPath path)
Validate the response |
| Uses of CStorageException in net.netheos.pcsapi.storage |
|---|
| Methods in net.netheos.pcsapi.storage that throw CStorageException | |
|---|---|
void |
IStorageProvider.close()
Close the provider. |
void |
StorageProvider.close()
|
boolean |
IStorageProvider.createFolder(CPath path)
Create a folder at given path, with intermediate folders if needed. |
boolean |
IStorageProvider.delete(CPath path)
Deletes blob, or recursively delete folder at given path. |
void |
IStorageProvider.download(CDownloadRequest downloadRequest)
Downloads a blob from provider to a byte sink, as defined by the download_request object. |
CFile |
IStorageProvider.getFile(CPath path)
Return detailed file information at given path, or None if no object exists at this path |
CQuota |
IStorageProvider.getQuota()
Returns a CQuota object |
String |
IStorageProvider.getUserId()
Return user identifier (login in case of login/password, or email in case of OAuth |
CFolderContent |
IStorageProvider.listFolder(CFolder folder)
Return a map of files present in given CFolder. keys of map are CPath objects, values are CFile objects (CFolder or CBlob). |
CFolderContent |
IStorageProvider.listFolder(CPath path)
Return a map of files present in given CPath. keys of map are CPath objects, values are CFile objects (CFolder or CBlob). |
CFolderContent |
IStorageProvider.listRootFolder()
Equivalent to IStorageProvider.listFolder(net.netheos.pcsapi.models.CPath) with "/" |
void |
IStorageProvider.upload(CUploadRequest uploadRequest)
Uploads a byte source to provider, as defined by upload_request object. |
| Uses of CStorageException in net.netheos.pcsapi.utils |
|---|
| Methods in net.netheos.pcsapi.utils that return CStorageException | |
|---|---|
static CStorageException |
PcsUtils.buildCStorageException(CResponse response,
String message,
CPath path)
Some common code between providers. |
| Methods in net.netheos.pcsapi.utils that throw CStorageException | |
|---|---|
static void |
PcsUtils.ensureContentTypeIsJson(CResponse response,
boolean isRetriable)
Extract content type from response headers, and ensure it is application/json or text/javascript. |
static void |
PcsUtils.ensureContentTypeIsXml(CResponse response,
boolean isRetriable)
Extract content type from response headers, and ensure it is application/xml. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||