OutputT - Type of successful unmarshalled POJO.public class AwsXmlPredicatedResponseHandler<OutputT> extends Object implements HttpResponseHandler<Response<OutputT>>
Response object which
may contain either the unmarshalled success POJO, or the unmarshalled exception.X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER| Constructor and Description |
|---|
AwsXmlPredicatedResponseHandler(Function<SdkHttpFullResponse,SdkPojo> pojoSupplier,
Function<AwsXmlUnmarshallingContext,OutputT> successResponseTransformer,
Function<AwsXmlUnmarshallingContext,? extends SdkException> errorResponseTransformer,
Function<AwsXmlUnmarshallingContext,AwsXmlUnmarshallingContext> decorateContextWithError,
boolean needsConnectionLeftOpen)
Standard constructor
|
| Modifier and Type | Method and Description |
|---|---|
Response<OutputT> |
handle(SdkHttpFullResponse httpResponse,
ExecutionAttributes executionAttributes)
Handle a response
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneedsConnectionLeftOpenpublic AwsXmlPredicatedResponseHandler(Function<SdkHttpFullResponse,SdkPojo> pojoSupplier, Function<AwsXmlUnmarshallingContext,OutputT> successResponseTransformer, Function<AwsXmlUnmarshallingContext,? extends SdkException> errorResponseTransformer, Function<AwsXmlUnmarshallingContext,AwsXmlUnmarshallingContext> decorateContextWithError, boolean needsConnectionLeftOpen)
pojoSupplier - A method that supplies an empty builder of the correct typesuccessResponseTransformer - A function that can unmarshall a response object from parsed XMLerrorResponseTransformer - A function that can unmarshall an exception object from parsed XMLdecorateContextWithError - A function that determines if the response was an error or notneedsConnectionLeftOpen - true if the underlying connection should not be closed once parsedpublic Response<OutputT> handle(SdkHttpFullResponse httpResponse, ExecutionAttributes executionAttributes)
handle in interface HttpResponseHandler<Response<OutputT>>httpResponse - The HTTP response objectexecutionAttributes - The attributes attached to this particular execution.Copyright © 2020. All rights reserved.