com.baidubce.services.iothisk
Class AbstractIotHiskBceClient
java.lang.Object
com.baidubce.AbstractBceClient
com.baidubce.services.iothisk.AbstractIotHiskBceClient
- Direct Known Subclasses:
- IotHiskClient, IotPkiManageClient
public abstract class AbstractIotHiskBceClient
- extends AbstractBceClient
Abstract client for accessing the iot hisk service.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HANDLERS
protected static final HttpResponseHandler[] HANDLERS
- Responsible for handling httpResponses from all hisk service calls.
AbstractIotHiskBceClient
public AbstractIotHiskBceClient(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers)
createRequest
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.
- Parameters:
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.
- Returns:
- A new request object populated with endpoint, resource path and specific parameters to send.
fillInHeaderAndBody
protected static void fillInHeaderAndBody(AbstractBceRequest bceRequest,
InternalRequest request)
- The method to fill the internalRequest's content field with bceRequest.
- Parameters:
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.
toJson
protected static byte[] toJson(AbstractBceRequest request)
- Return a json byte array representation of the object.
- Parameters:
request
- request object to be parsed as json byte array.
- Returns:
- a byte array representation of the object
Copyright © 2018. All rights reserved.