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
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, wait
needsConnectionLeftOpen
public CombinedResponseHandler(HttpResponseHandler<OutputT> successResponseHandler, HttpResponseHandler<? extends SdkException> errorResponseHandler)
public Response<OutputT> handle(SdkHttpFullResponse httpResponse, ExecutionAttributes executionAttributes) throws Exception
HttpResponseHandler
handle
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 © 2020. All rights reserved.