JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.http

Class RpcV2CborResponseHandler<T>

    • Constructor Detail

      • RpcV2CborResponseHandler

        public RpcV2CborResponseHandler(Unmarshaller<T,RpcV2CborUnmarshallerContext> responseUnmarshaller,
         Map<Class<?>,Unmarshaller<?,RpcV2CborUnmarshallerContext>> simpleTypeUnmarshallers,
         Map<RpcV2CborUnmarshallerContext.UnmarshallerType,Unmarshaller<?,RpcV2CborUnmarshallerContext>> customTypeMarshallers,
         com.fasterxml.jackson.dataformat.cbor.CBORFactory cborFactory,
         boolean needsConnectionLeftOpen,
         boolean isPayloadRpcV2Cbor)
        Constructs a new response handler that will use the specified RPCV2CBOR unmarshaller to unmarshall the service response and uses the specified response element path to find the root of the business data in the service's response.
        Parameters:
        responseUnmarshaller - The RPCV2CBOR unmarshaller to use on the response.
        simpleTypeUnmarshallers - List of unmarshallers to be used for scalar types.
        customTypeMarshallers - List of custom unmarshallers to be used for special types.
        cborFactory - the rpcv2Cbor factory to be used for parsing the response.
    • Method Detail

      • needsConnectionLeftOpen

        public boolean needsConnectionLeftOpen()
        Description copied from interface: HttpResponseHandler
        Indicates if this response handler requires that the underlying HTTP connection not be closed automatically after the response is handled.

        For example, if the object returned by this response handler manually manages the stream of data from the HTTP connection, and doesn't read all the data from the connection in the HttpResponseHandler.handle(HttpResponse) method, this method can be used to prevent the underlying connection from being prematurely closed.

        Response handlers should use this option very carefully, since it means that resource cleanup is no longer handled automatically, and if neglected, can result in the client runtime running out of resources for new HTTP connections.

        Specified by:
        needsConnectionLeftOpen in interface HttpResponseHandler<AmazonWebServiceResponse<T>>
        Returns:
        True if this response handler requires that the underlying HTTP connection be left open, and not automatically closed, otherwise false.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /