OutputT - Type of unmarshalled responsepublic final class StreamManagingStage<OutputT> extends Object implements RequestPipeline<SdkHttpFullRequest,Response<OutputT>>
ContentStreamProvider.
Currently, it ensures that the stream returned by the provider is not closeable.
| Constructor and Description |
|---|
StreamManagingStage(RequestPipeline<SdkHttpFullRequest,Response<OutputT>> wrapped) |
| Modifier and Type | Method and Description |
|---|---|
Response<OutputT> |
execute(SdkHttpFullRequest request,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
public StreamManagingStage(RequestPipeline<SdkHttpFullRequest,Response<OutputT>> wrapped)
public Response<OutputT> execute(SdkHttpFullRequest request, RequestExecutionContext context) throws Exception
RequestPipelineexecute in interface RequestPipeline<SdkHttpFullRequest,Response<OutputT>>request - 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 © 2023. All rights reserved.