@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, setAuthToken
close, getExecutor, getMessenger, getOptions, id, send, send
public CocWebApiClient(String apiToken)
Constructor for CocWebApiClient.
apiToken
- a String
objectpublic CocWebApiClient(HttpOptions options)
HttpOptions
options
- 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 AbstractRestClient
requestBuilder
- The RequestBuilder
containing the request parameters of the concrete Request
authToken
- 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 AbstractRestClient
response
- The Http Response
received by the transportAbstractWebApiResponse
Copyright © 2016–2024. All rights reserved.