OutputT
- Type of successful unmarshalled POJO.RequestPipeline<HttpResponse,Response<OutputT>>
public class HandleResponseStage<OutputT> extends Object implements RequestPipeline<HttpResponse,Response<OutputT>>
Response
object which may contain either the unmarshalled success POJO, or the unmarshalled exception.Constructor | Description |
---|---|
HandleResponseStage(HttpResponseHandler<OutputT> successResponseHandler,
HttpResponseHandler<? extends SdkBaseException> errorResponseHandler) |
Modifier and Type | Method | Description |
---|---|---|
Response<OutputT> |
execute(HttpResponse httpResponse,
RequestExecutionContext context) |
Execute the pipeline with the given input.
|
public HandleResponseStage(HttpResponseHandler<OutputT> successResponseHandler, HttpResponseHandler<? extends SdkBaseException> errorResponseHandler)
public Response<OutputT> execute(HttpResponse httpResponse, RequestExecutionContext context) throws Exception
RequestPipeline
execute
in interface RequestPipeline<HttpResponse,Response<OutputT>>
httpResponse
- Input to pipeline.context
- Context containing both request dependencies, and a container for any mutable state that must be shared
between stages.Exception
- If any error occurs. This will be thrown out of the pipeline, if exceptions must be handled see
RequestPipelineBuilder.wrap(BiFunction)
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.