net.netheos.pcsapi.storage
Class StorageProvider<T extends SessionManager>

java.lang.Object
  extended by net.netheos.pcsapi.storage.StorageProvider<T>
All Implemented Interfaces:
IStorageProvider
Direct Known Subclasses:
CloudMe, Dropbox, GoogleDrive, Hubic

public abstract class StorageProvider<T extends SessionManager>
extends Object
implements IStorageProvider


Field Summary
protected  RetryStrategy retryStrategy
           
protected  T sessionManager
           
 
Constructor Summary
protected StorageProvider(String providerName, T sessionManager, RetryStrategy retryStrategy, org.apache.http.client.HttpClient httpClient)
           
 
Method Summary
 void close()
          Close the provider.
 String getProviderName()
          Get the provider name
 T getSessionManager()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.netheos.pcsapi.storage.IStorageProvider
createFolder, delete, download, getFile, getQuota, getUserId, listFolder, listFolder, listRootFolder, upload
 

Field Detail

retryStrategy

protected final RetryStrategy retryStrategy

sessionManager

protected final T extends SessionManager sessionManager
Constructor Detail

StorageProvider

protected StorageProvider(String providerName,
                          T sessionManager,
                          RetryStrategy retryStrategy,
                          org.apache.http.client.HttpClient httpClient)
Method Detail

getSessionManager

public T getSessionManager()

getProviderName

public String getProviderName()
Description copied from interface: IStorageProvider
Get the provider name

Specified by:
getProviderName in interface IStorageProvider
Returns:
The provider name (ie. "dropbox")

close

public void close()
           throws CStorageException
Description copied from interface: IStorageProvider
Close the provider. The internal objets will be released

Specified by:
close in interface IStorageProvider
Throws:
CStorageException - Close error

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.