public abstract class AbstractIotHiskBceClient extends AbstractBceClient
| Modifier and Type | Field and Description |
|---|---|
protected static HttpResponseHandler[] |
HANDLERS
Responsible for handling httpResponses from all hisk service calls.
|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
AbstractIotHiskBceClient(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers) |
| Modifier and Type | Method and Description |
|---|---|
protected InternalRequest |
createRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
SignOptions signOptions,
List<String> path,
String... pathVariables)
Creates and initializes a new request object for the specified resource.
|
protected static void |
fillInHeaderAndBody(AbstractBceRequest bceRequest,
InternalRequest request)
The method to fill the internalRequest's content field with bceRequest.
|
protected static byte[] |
toJson(AbstractBceRequest request)
Return a json byte array representation of the object.
|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownprotected static final HttpResponseHandler[] HANDLERS
public AbstractIotHiskBceClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
protected InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, SignOptions signOptions, List<String> path, String... pathVariables)
bceRequest - The original BCE request created by the user.httpMethod - The HTTP method to use when sending the request.signOptions - The options for signature.path - The options for URI prefix.pathVariables - The optional variables used in the URI path.protected static void fillInHeaderAndBody(AbstractBceRequest bceRequest, InternalRequest request)
bceRequest - The original request, as created by the user.request - A request object, populated with endpoint, resource path, ready for callers to populate
any additional headers or parameters, and execute.protected static byte[] toJson(AbstractBceRequest request)
request - request object to be parsed as json byte array.Copyright © 2022. All rights reserved.