public class HandleResponseStage<OutputT> extends Object implements RequestPipeline<software.amazon.awssdk.http.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(software.amazon.awssdk.http.SdkHttpFullResponse httpResponse,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
public HandleResponseStage(HttpResponseHandler<Response<OutputT>> responseHandler)
public Response<OutputT> execute(software.amazon.awssdk.http.SdkHttpFullResponse httpResponse, RequestExecutionContext context) throws Exception
RequestPipelineexecute in interface RequestPipeline<software.amazon.awssdk.http.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 © 2022. All rights reserved.