RequestPipeline<Pair<SdkHttpFullRequest,SdkHttpFullResponse>,Pair<SdkHttpFullRequest,HttpResponse>>
public class HttpResponseAdaptingStage extends Object implements RequestPipeline<Pair<SdkHttpFullRequest,SdkHttpFullResponse>,Pair<SdkHttpFullRequest,HttpResponse>>
SdkHttpFullResponse
representation, to the legacy HttpResponse
representation.Constructor | Description |
---|---|
HttpResponseAdaptingStage(HttpClientDependencies dependencies) |
Modifier and Type | Method | Description |
---|---|---|
Pair<SdkHttpFullRequest,HttpResponse> |
execute(Pair<SdkHttpFullRequest,SdkHttpFullResponse> input,
RequestExecutionContext context) |
Execute the pipeline with the given input.
|
public HttpResponseAdaptingStage(HttpClientDependencies dependencies)
public Pair<SdkHttpFullRequest,HttpResponse> execute(Pair<SdkHttpFullRequest,SdkHttpFullResponse> input, RequestExecutionContext context) throws Exception
RequestPipeline
execute
in interface RequestPipeline<Pair<SdkHttpFullRequest,SdkHttpFullResponse>,Pair<SdkHttpFullRequest,HttpResponse>>
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.