Class AttachHttpMetadataResponseHandler<T extends SdkResponse>
- java.lang.Object
-
- software.amazon.awssdk.core.client.handler.AttachHttpMetadataResponseHandler<T>
-
- All Implemented Interfaces:
HttpResponseHandler<T>
public final class AttachHttpMetadataResponseHandler<T extends SdkResponse> extends Object implements HttpResponseHandler<T>
DecorateHttpResponseHandler
to attachSdkHttpResponse
to the response object.
-
-
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 AttachHttpMetadataResponseHandler(HttpResponseHandler<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes)
Accepts an HTTP response object, and returns an object of type T.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.http.HttpResponseHandler
needsConnectionLeftOpen
-
-
-
-
Constructor Detail
-
AttachHttpMetadataResponseHandler
public AttachHttpMetadataResponseHandler(HttpResponseHandler<T> delegate)
-
-
Method Detail
-
handle
public T handle(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) throws Exception
Description copied from interface:HttpResponseHandler
Accepts an HTTP response object, and returns an object of type T. Individual implementations may choose to handle the response however they need to, and return any type that they need to.- Specified by:
handle
in interfaceHttpResponseHandler<T extends SdkResponse>
- Parameters:
response
- The HTTP response to handle, as received from an AWS service.executionAttributes
- The attributes attached to this particular execution.- Returns:
- An object of type T, as defined by individual implementations.
- Throws:
Exception
- If any problems are encountered handling the response.
-
-