public abstract class DbxRawClientV2 extends Object
DbxWebAuth.
This class has no mutable state, so it's thread safe as long as you pass in a thread safe
HttpRequestor implementation.
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_AGENT_ID |
| Modifier | Constructor and Description |
|---|---|
protected |
DbxRawClientV2(DbxRequestConfig requestConfig,
DbxHost host) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addAuthHeaders(List<HttpRequestor.Header> headers)
Add the appropriate authentication headers to the request, if any.
|
<ArgT,ResT,ErrT> |
downloadStyle(String host,
String path,
ArgT arg,
boolean noAuth,
List<HttpRequestor.Header> extraHeaders,
StoneSerializer<ArgT> argSerializer,
StoneSerializer<ResT> responseSerializer,
StoneSerializer<ErrT> errorSerializer) |
DbxHost |
getHost()
Returns the
DbxHost that was passed in to the constructor. |
DbxRequestConfig |
getRequestConfig()
Returns the
DbxRequestConfig that was passed in to the constructor. |
<ArgT,ResT,ErrT> |
rpcStyle(String host,
String path,
ArgT arg,
boolean noAuth,
StoneSerializer<ArgT> argSerializer,
StoneSerializer<ResT> responseSerializer,
StoneSerializer<ErrT> errorSerializer) |
<ArgT> HttpRequestor.Uploader |
uploadStyle(String host,
String path,
ArgT arg,
boolean noAuth,
StoneSerializer<ArgT> argSerializer) |
public static final String USER_AGENT_ID
protected DbxRawClientV2(DbxRequestConfig requestConfig, DbxHost host)
requestConfig - Configuration controlling How requests should be issued to Dropbox
servers.host - Dropbox server hostnames (primarily for internal use)protected abstract void addAuthHeaders(List<HttpRequestor.Header> headers)
headers - List of request headers. Add authentication headers to this list.public <ArgT,ResT,ErrT> ResT rpcStyle(String host, String path, ArgT arg, boolean noAuth, StoneSerializer<ArgT> argSerializer, StoneSerializer<ResT> responseSerializer, StoneSerializer<ErrT> errorSerializer) throws DbxWrappedException, DbxException
DbxWrappedExceptionDbxExceptionpublic <ArgT,ResT,ErrT> DbxDownloader<ResT> downloadStyle(String host, String path, ArgT arg, boolean noAuth, List<HttpRequestor.Header> extraHeaders, StoneSerializer<ArgT> argSerializer, StoneSerializer<ResT> responseSerializer, StoneSerializer<ErrT> errorSerializer) throws DbxWrappedException, DbxException
DbxWrappedExceptionDbxExceptionpublic <ArgT> HttpRequestor.Uploader uploadStyle(String host, String path, ArgT arg, boolean noAuth, StoneSerializer<ArgT> argSerializer) throws DbxException
DbxExceptionpublic DbxRequestConfig getRequestConfig()
DbxRequestConfig that was passed in to the constructor.public DbxHost getHost()
DbxHost that was passed in to the constructor.