public final class AttachHttpMetadataResponseHandler<T extends SdkResponse> extends Object implements HttpResponseHandler<T>
HttpResponseHandler
to attach SdkHttpResponse
to the response object.X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER
Constructor and Description |
---|
AttachHttpMetadataResponseHandler(HttpResponseHandler<T> delegate) |
Modifier and Type | Method and Description |
---|---|
T |
handle(SdkHttpFullResponse response,
ExecutionAttributes executionAttributes)
Accepts an HTTP response object, and returns an object of type T.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
needsConnectionLeftOpen
public AttachHttpMetadataResponseHandler(HttpResponseHandler<T> delegate)
public T handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) throws Exception
HttpResponseHandler
handle
in interface HttpResponseHandler<T extends SdkResponse>
response
- The HTTP response to handle, as received from an AWS service.executionAttributes
- The attributes attached to this particular execution.Exception
- If any problems are encountered handling the response.Copyright © 2020. All rights reserved.