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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneedsConnectionLeftOpenpublic AttachHttpMetadataResponseHandler(HttpResponseHandler<T> delegate)
public T handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) throws Exception
HttpResponseHandlerhandle 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 © 2017 Amazon Web Services, Inc. All Rights Reserved.