@Deprecated @ApiStatus.ScheduledForRemoval public class CocWebApiClient extends AbstractRestClient
| Constructor and Description |
|---|
CocWebApiClient(HttpOptions options)
Deprecated.
Create a new client using the provided
HttpOptions |
CocWebApiClient(String apiToken)
Deprecated.
Constructor for CocWebApiClient.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyAuthenticationScheme(org.asynchttpclient.RequestBuilder requestBuilder,
String authToken)
Deprecated.
Override this method if the client requires authentication.
|
protected CocWebApiResponse |
createWebApiResponse(org.asynchttpclient.Response response)
Deprecated.
A factory method that creates an
AbstractWebApiResponse instance based on the Http Response |
createMessenger, getAuthToken, registerContentTypeProcessor, removeContentTypeProcessor, send, setAuthTokenclose, getExecutor, getMessenger, getOptions, id, send, sendpublic CocWebApiClient(String apiToken)
Constructor for CocWebApiClient.
apiToken - a String objectpublic CocWebApiClient(HttpOptions options)
HttpOptionsoptions - The HttpOptions to be used by the clientprotected void applyAuthenticationScheme(org.asynchttpclient.RequestBuilder requestBuilder,
String authToken)
Override this method if the client requires authentication.
applyAuthenticationScheme in class AbstractRestClientrequestBuilder - The RequestBuilder containing the request parameters of the concrete RequestauthToken - A String representing the authetntication token to be passed to the providerprotected CocWebApiResponse createWebApiResponse(org.asynchttpclient.Response response)
A factory method that creates an AbstractWebApiResponse instance based on the Http Response
createWebApiResponse in class AbstractRestClientresponse - The Http Response received by the transportAbstractWebApiResponseCopyright © 2016–2024. All rights reserved.