Package | Description |
---|---|
com.sdl.delivery.iq.index.client.http |
Modifier and Type | Method and Description |
---|---|
void |
ApiCallback.onFailure(ApiException e,
int statusCode,
Map<String,List<String>> responseHeaders)
This is called when the API call fails.
|
Modifier and Type | Method and Description |
---|---|
okhttp3.Call |
ApiClient.buildCall(String path,
String method,
List<Pair> queryParams,
Object body,
Map<String,String> headerParams,
Map<String,Object> formParams,
String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build HTTP call with the given options.
|
<T> Optional<T> |
ApiClient.deserialize(okhttp3.Response response,
Class<T> returnType)
Deserialize response body to Java object, according to the return type and
the Content-Type response header.
|
File |
ApiClient.downloadFileFromResponse(okhttp3.Response response)
Download file from the given response.
|
<T> ApiResponse<T> |
ApiClient.execute(okhttp3.Call call)
|
<T> ApiResponse<T> |
ApiClient.execute(okhttp3.Call call,
Class<T> returnType)
Execute HTTP call and deserialize the HTTP response body into the given return type.
|
<T extends QueryResultData<R>,R extends QueryResult> |
ApiClient.executeWithResultSet(okhttp3.Call call,
Class<T> resultSetClass) |
<T> Optional<T> |
ApiClient.handleResponse(okhttp3.Response response,
Class<T> returnType)
Handle the given response, return the deserialized object when the response is successful.
|
<T extends QueryResultData<R>,R extends QueryResult> |
ApiClient.handleResponseWithResultSet(okhttp3.Response response,
Class<T> resultSetClass)
Handle the given response, return the deserialized object
with the given result set classes when the response is successful.
|
okhttp3.RequestBody |
ApiClient.serialize(Object obj,
String contentType)
Serialize the given Java object into request body according to the object's
class and the request Content-Type.
|
void |
ApiClient.setApiKey(String apiKey)
Helper method to set API key value for the first API key authentication.
|
void |
ApiClient.setApiKeyPrefix(String apiKeyPrefix)
Helper method to set API key prefix for the first API key authentication.
|
void |
ApiClient.setPassword(String password)
Helper method to set PASSWORD for the first HTTP basic authentication.
|
ApiClient |
ApiClient.setSslCaCert(InputStream cert)
Configure the CA certificate to be trusted when making https requests.
|
void |
ApiClient.setUsername(String username)
Helper method to set username for the first HTTP basic authentication.
|
ApiClient |
ApiClient.setVerifyingSsl(boolean sslOn)
Configure whether to verify certificate and hostname when making https requests.
|
void |
ApiClient.updateParamsForAuth(String[] authNames,
List<Pair> queryParams,
Map<String,String> headerParams)
Update query and header parameters based on authentication settings.
|
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries