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 a
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(Response<OutputT> input, RequestExecutionContext context) Execute the pipeline with the given input.
-
Constructor Details
-
UnwrapResponseContainer
public UnwrapResponseContainer()
-
-
Method Details
-
execute
Description copied from interface:RequestPipeline
Execute the pipeline with the given input.- Specified by:
execute
in 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)
.
-