T - Indicates the type being unmarshalled by this response handler.public final class JsonResponseHandler<T extends SdkPojo> extends Object implements HttpResponseHandler<T>
X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER| Constructor and Description |
|---|
JsonResponseHandler(JsonProtocolUnmarshaller unmarshaller,
Function<SdkHttpFullResponse,SdkPojo> pojoSupplier,
boolean needsConnectionLeftOpen,
boolean isPayloadJson)
Constructs a new response handler that will use the specified JSON 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.
|
| Modifier and Type | Method and Description |
|---|---|
T |
handle(SdkHttpFullResponse response,
ExecutionAttributes executionAttributes) |
boolean |
needsConnectionLeftOpen() |
public JsonResponseHandler(JsonProtocolUnmarshaller unmarshaller, Function<SdkHttpFullResponse,SdkPojo> pojoSupplier, boolean needsConnectionLeftOpen, boolean isPayloadJson)
unmarshaller - The JSON unmarshaller to use on the response.public T handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) throws Exception
handle in interface HttpResponseHandler<T extends SdkPojo>ExceptionHttpResponseHandler.handle(SdkHttpFullResponse, ExecutionAttributes)public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen in interface HttpResponseHandler<T extends SdkPojo>Copyright © 2019. All rights reserved.