com.squareup.okhttp.Call |
ApiClient.buildCall(java.lang.String path,
java.lang.String method,
java.util.List<Pair> queryParams,
java.util.List<Pair> collectionQueryParams,
java.lang.Object body,
java.util.Map<java.lang.String,java.lang.String> headerParams,
java.util.Map<java.lang.String,java.lang.Object> formParams,
java.lang.String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build HTTP call with the given options.
|
com.squareup.okhttp.Request |
ApiClient.buildRequest(java.lang.String path,
java.lang.String method,
java.util.List<Pair> queryParams,
java.util.List<Pair> collectionQueryParams,
java.lang.Object body,
java.util.Map<java.lang.String,java.lang.String> headerParams,
java.util.Map<java.lang.String,java.lang.Object> formParams,
java.lang.String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build an HTTP request with the given options.
|
<T> T |
ApiClient.deserialize(com.squareup.okhttp.Response response,
java.lang.reflect.Type returnType) |
Deserialize response body to Java object, according to the return type and
the Content-Type response header.
|
java.io.File |
ApiClient.downloadFileFromResponse(com.squareup.okhttp.Response response) |
Download file from the given response.
|
<T> ApiResponse<T> |
ApiClient.execute(com.squareup.okhttp.Call call) |
|
<T> ApiResponse<T> |
ApiClient.execute(com.squareup.okhttp.Call call,
java.lang.reflect.Type returnType) |
Execute HTTP call and deserialize the HTTP response body into the given return type.
|
<T> T |
ApiClient.handleResponse(com.squareup.okhttp.Response response,
java.lang.reflect.Type returnType) |
Handle the given response, return the deserialized object when the response is successful.
|
com.squareup.okhttp.RequestBody |
ApiClient.serialize(java.lang.Object obj,
java.lang.String contentType) |
Serialize the given Java object into request body according to the object's
class and the request Content-Type.
|