Class StaxResponseHandler<T>

    • Constructor Detail

      • StaxResponseHandler

        public StaxResponseHandler​(com.amazonaws.transform.Unmarshaller<T,​com.amazonaws.transform.StaxUnmarshallerContext> responseUnmarshaller)
        Constructs a new response handler that will use the specified StAX 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 StAX unmarshaller to use on the response.
    • Method Detail

      • registerAdditionalMetadataExpressions

        protected void registerAdditionalMetadataExpressions​(com.amazonaws.transform.StaxUnmarshallerContext unmarshallerContext)
        Hook for subclasses to override in order to collect additional metadata from service responses.
        Parameters:
        unmarshallerContext - The unmarshaller context used to configure a service's response data.
      • needsConnectionLeftOpen

        public boolean needsConnectionLeftOpen()
        Since this response handler completely consumes all the data from the underlying HTTP connection during the handle method, we don't need to keep the HTTP connection open.
        Specified by:
        needsConnectionLeftOpen in interface HttpResponseHandler<T>
        Returns:
        True if this response handler requires that the underlying HTTP connection be left open, and not automatically closed, otherwise false.
        See Also:
        HttpResponseHandler.needsConnectionLeftOpen()