OutputT - Type of successful unmarshalled POJO.public class HandleResponseStage<OutputT> extends Object implements RequestPipeline<SdkHttpFullResponse,Response<OutputT>>
Response object which may contain either the unmarshalled success POJO, or the unmarshalled exception.| Constructor and Description |
|---|
HandleResponseStage(HttpResponseHandler<OutputT> successResponseHandler,
HttpResponseHandler<? extends SdkException> errorResponseHandler) |
| Modifier and Type | Method and Description |
|---|---|
Response<OutputT> |
execute(SdkHttpFullResponse httpResponse,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
public HandleResponseStage(HttpResponseHandler<OutputT> successResponseHandler, HttpResponseHandler<? extends SdkException> errorResponseHandler)
public Response<OutputT> execute(SdkHttpFullResponse httpResponse, RequestExecutionContext context) throws Exception
RequestPipelineexecute 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 © 2019. All rights reserved.