OutputT - Type of successful unmarshalled POJO.public class CombinedResponseHandler<OutputT> extends Object implements HttpResponseHandler<Response<OutputT>>
Response object which may contain either the
unmarshalled success POJO, or the unmarshalled exception. Can be used with streaming or non-streaming requests.X_AMZ_ID_2_HEADER, X_AMZN_REQUEST_ID_HEADER, X_AMZN_REQUEST_ID_HEADER_ALTERNATE, X_AMZN_REQUEST_ID_HEADERS| Constructor and Description |
|---|
CombinedResponseHandler(HttpResponseHandler<OutputT> successResponseHandler,
HttpResponseHandler<? extends SdkException> errorResponseHandler) |
| Modifier and Type | Method and Description |
|---|---|
Response<OutputT> |
handle(SdkHttpFullResponse httpResponse,
ExecutionAttributes executionAttributes)
Accepts an HTTP response object, and returns an object of type T.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneedsConnectionLeftOpenpublic CombinedResponseHandler(HttpResponseHandler<OutputT> successResponseHandler, HttpResponseHandler<? extends SdkException> errorResponseHandler)
public Response<OutputT> handle(SdkHttpFullResponse httpResponse, ExecutionAttributes executionAttributes) throws Exception
HttpResponseHandlerhandle in interface HttpResponseHandler<Response<OutputT>>httpResponse - 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 © 2021. All rights reserved.