public class HandleResponseStage<OutputT> extends Object implements RequestPipeline<SdkHttpFullResponse,Response<OutputT>>
HttpResponseHandler
to transform the response into a Response
object that contains a flag indicating success of failure and an unmarshalled response object or exception as
appropriate.Constructor and Description |
---|
HandleResponseStage(HttpResponseHandler<Response<OutputT>> responseHandler) |
Modifier and Type | Method and Description |
---|---|
Response<OutputT> |
execute(SdkHttpFullResponse httpResponse,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
public HandleResponseStage(HttpResponseHandler<Response<OutputT>> responseHandler)
public Response<OutputT> execute(SdkHttpFullResponse httpResponse, RequestExecutionContext context) throws Exception
RequestPipeline
execute
in interface RequestPipeline<SdkHttpFullResponse,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.wrappedWith(BiFunction)
.Copyright © 2020. All rights reserved.