类 AbstractIotHiskBceClient

    • 字段详细资料

      • HANDLERS

        protected static final HttpResponseHandler[] HANDLERS
        Responsible for handling httpResponses from all hisk service calls.
    • 方法详细资料

      • 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.
        参数:
        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.
        返回:
        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.
        参数:
        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.
        参数:
        request - request object to be parsed as json byte array.
        返回:
        a byte array representation of the object