public class ApplyUserAgentStage extends Object implements MutableRequestToRequestPipeline
| Constructor and Description |
|---|
ApplyUserAgentStage(HttpClientDependencies dependencies) |
| Modifier and Type | Method and Description |
|---|---|
SdkHttpFullRequest.Builder |
execute(SdkHttpFullRequest.Builder request,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
static String |
resolveClientUserAgent(String userAgentPrefix,
String internalUserAgent,
ClientType clientType,
SdkHttpClient syncHttpClient,
SdkAsyncHttpClient asyncHttpClient,
RetryPolicy retryPolicy) |
public ApplyUserAgentStage(HttpClientDependencies dependencies)
public static String resolveClientUserAgent(String userAgentPrefix, String internalUserAgent, ClientType clientType, SdkHttpClient syncHttpClient, SdkAsyncHttpClient asyncHttpClient, RetryPolicy retryPolicy)
public SdkHttpFullRequest.Builder execute(SdkHttpFullRequest.Builder request,
RequestExecutionContext context)
throws Exception
RequestPipelineexecute in interface RequestPipeline<SdkHttpFullRequest.Builder,SdkHttpFullRequest.Builder>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 © 2022. All rights reserved.