OutputT - POJO result type.RequestPipeline<Response<OutputT>,OutputT>public class UnwrapResponseContainer<OutputT> extends Object implements RequestPipeline<Response<OutputT>,OutputT>
Response container to just the POJO result. If we've gotten this far
then the Response container can only be a success response, otherwise the exception would have
been thrown out of the pipeline.| Constructor | Description |
|---|---|
UnwrapResponseContainer() |
| Modifier and Type | Method | Description |
|---|---|---|
OutputT |
execute(Response<OutputT> input,
RequestExecutionContext context) |
Execute the pipeline with the given input.
|
public OutputT execute(Response<OutputT> input, RequestExecutionContext context) throws Exception
RequestPipelineexecute in interface RequestPipeline<Response<OutputT>,OutputT>input - 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.