Class AwsQueryResponseHandler<T extends AwsResponse>
- java.lang.Object
-
- software.amazon.awssdk.protocols.query.internal.unmarshall.AwsQueryResponseHandler<T>
-
- Type Parameters:
T
- Indicates the type being unmarshalled by this response handler.
- All Implemented Interfaces:
HttpResponseHandler<T>
public final class AwsQueryResponseHandler<T extends AwsResponse> extends Object implements HttpResponseHandler<T>
Response handler for AWS/Query services and Amazon EC2 which is a dialect of the Query protocol.
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.core.http.HttpResponseHandler
X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER, X_AMZN_REQUEST_ID_HEADER_ALTERNATE, X_AMZN_REQUEST_ID_HEADERS
-
-
Constructor Summary
Constructors Constructor Description AwsQueryResponseHandler(QueryProtocolUnmarshaller unmarshaller, Function<SdkHttpFullResponse,SdkPojo> pojoSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes)
boolean
needsConnectionLeftOpen()
-
-
-
Constructor Detail
-
AwsQueryResponseHandler
public AwsQueryResponseHandler(QueryProtocolUnmarshaller unmarshaller, Function<SdkHttpFullResponse,SdkPojo> pojoSupplier)
-
-
Method Detail
-
handle
public T handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) throws Exception
- Specified by:
handle
in interfaceHttpResponseHandler<T extends AwsResponse>
- Throws:
Exception
-
needsConnectionLeftOpen
public boolean needsConnectionLeftOpen()
- Specified by:
needsConnectionLeftOpen
in interfaceHttpResponseHandler<T extends AwsResponse>
-
-