Class UnwrapResponseContainer<OutputT>
- java.lang.Object
-
- software.amazon.awssdk.core.internal.http.pipeline.stages.UnwrapResponseContainer<OutputT>
-
- Type Parameters:
OutputT- POJO result type.
- All Implemented Interfaces:
RequestPipeline<Response<OutputT>,OutputT>
public class UnwrapResponseContainer<OutputT> extends Object implements RequestPipeline<Response<OutputT>,OutputT>
Unwrap aResponsecontainer 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 Summary
Constructors Constructor Description UnwrapResponseContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputTexecute(Response<OutputT> input, RequestExecutionContext context)Execute the pipeline with the given input.
-
-
-
Method Detail
-
execute
public OutputT execute(Response<OutputT> input, RequestExecutionContext context) throws Exception
Description copied from interface:RequestPipelineExecute the pipeline with the given input.- Specified by:
executein interfaceRequestPipeline<Response<OutputT>,OutputT>- Parameters:
input- Input to pipeline.context- Context containing both request dependencies, and a container for any mutable state that must be shared between stages.- Returns:
- Output of pipeline.
- Throws:
Exception- If any error occurs. This will be thrown out of the pipeline, if exceptions must be handled seeRequestPipelineBuilder.wrappedWith(BiFunction).
-
-