All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static List<HttpRequestor.Header> |
addAuthHeader(List<HttpRequestor.Header> headers,
String accessToken) |
static List<HttpRequestor.Header> |
addBasicAuthHeader(List<HttpRequestor.Header> headers,
String username,
String password) |
static List<HttpRequestor.Header> |
addSelectUserHeader(List<HttpRequestor.Header> headers,
String memberId) |
static List<HttpRequestor.Header> |
addUserAgentHeader(List<HttpRequestor.Header> headers,
DbxRequestConfig requestConfig,
String sdkUserAgentIdentifier) |
static List<HttpRequestor.Header> |
addUserLocaleHeader(List<HttpRequestor.Header> headers,
DbxRequestConfig requestConfig) |
static String |
buildUri(String host,
String path) |
static String |
buildUrlWithParams(String userLocale,
String host,
String path,
String[] params) |
static HttpRequestor.Header |
buildUserAgentHeader(DbxRequestConfig requestConfig,
String sdkUserAgentIdentifier) |
static <T> T |
doGet(DbxRequestConfig requestConfig,
String accessToken,
String sdkUserAgentIdentifier,
String host,
String path,
String[] params,
List<HttpRequestor.Header> headers,
DbxRequestUtil.ResponseHandler<T> handler) |
static <T> T |
doPost(DbxRequestConfig requestConfig,
String accessToken,
String sdkUserAgentIdentifier,
String host,
String path,
String[] params,
List<HttpRequestor.Header> headers,
DbxRequestUtil.ResponseHandler<T> handler) |
static <T> T |
doPostNoAuth(DbxRequestConfig requestConfig,
String sdkUserAgentIdentifier,
String host,
String path,
String[] params,
List<HttpRequestor.Header> headers,
DbxRequestUtil.ResponseHandler<T> handler) |
static String |
encodeUrlParam(String s) |
static <T> T |
finishResponse(HttpRequestor.Response response,
DbxRequestUtil.ResponseHandler<T> handler) |
static String |
getFirstHeader(HttpRequestor.Response response,
String name) |
static String |
getFirstHeaderMaybe(HttpRequestor.Response response,
String name) |
static String |
getRequestId(HttpRequestor.Response response) |
static byte[] |
loadErrorBody(HttpRequestor.Response response) |
static String |
parseErrorBody(String requestId,
int statusCode,
byte[] body) |
static <T> T |
readJsonFromResponse(JsonReader<T> reader,
HttpRequestor.Response response) |
static <T,E extends Throwable> T |
runAndRetry(int maxRetries,
DbxRequestUtil.RequestMaker<T,E> requestMaker) |
static HttpRequestor.Response |
startGet(DbxRequestConfig requestConfig,
String accessToken,
String sdkUserAgentIdentifier,
String host,
String path,
String[] params,
List<HttpRequestor.Header> headers)
Convenience function for making HTTP GET requests.
|
static HttpRequestor.Response |
startPostNoAuth(DbxRequestConfig requestConfig,
String sdkUserAgentIdentifier,
String host,
String path,
String[] params,
List<HttpRequestor.Header> headers)
Convenience function for making HTTP POST requests.
|
static HttpRequestor.Response |
startPostRaw(DbxRequestConfig requestConfig,
String sdkUserAgentIdentifier,
String host,
String path,
byte[] body,
List<HttpRequestor.Header> headers)
Convenience function for making HTTP POST requests.
|
static HttpRequestor.Uploader |
startPut(DbxRequestConfig requestConfig,
String accessToken,
String sdkUserAgentIdentifier,
String host,
String path,
String[] params,
List<HttpRequestor.Header> headers)
Convenience function for making HTTP PUT requests.
|
static DbxException |
unexpectedStatus(HttpRequestor.Response response) |