Modifier and Type | Class and Description |
---|---|
class |
DefaultRequest<T>
Default implementation of the Request interface.
|
Modifier and Type | Method and Description |
---|---|
Request<T> |
DefaultRequest.withParameter(String name,
String value) |
Request<T> |
Request.withParameter(String name,
String value)
Adds the specified request parameter to this request, and returns the
updated request object.
|
Request<T> |
DefaultRequest.withTimeOffset(int timeOffset) |
Request<T> |
Request.withTimeOffset(int timeOffset)
Sets the optional value for time offset for this request.
|
Modifier and Type | Method and Description |
---|---|
protected ExecutionContext |
AmazonWebServiceClient.createExecutionContext(Request<?> req) |
protected void |
AmazonWebServiceClient.endClientExecution(AWSRequestMetrics awsRequestMetrics,
Request<?> request,
Response<?> response)
Convenient method to end the client execution without logging the
awsRequestMetrics.
|
protected void |
AmazonWebServiceClient.endClientExecution(AWSRequestMetrics awsRequestMetrics,
Request<?> request,
Response<?> response,
boolean loggingAwsRequestMetrics)
Common routine to end a client AWS request/response execution and collect
the request metrics.
|
Modifier and Type | Method and Description |
---|---|
URL |
PresignerFacade.presign(Request<?> request,
Date expirationDate) |
Modifier and Type | Method and Description |
---|---|
com.ibm.cloud.objectstorage.transform.Marshaller<Request<Input>,Input> |
ClientExecutionParams.getMarshaller() |
Modifier and Type | Method and Description |
---|---|
ClientExecutionParams<Input,Output> |
ClientExecutionParams.withMarshaller(com.ibm.cloud.objectstorage.transform.Marshaller<Request<Input>,Input> marshaller) |
Modifier and Type | Method and Description |
---|---|
Request<?> |
HandlerBeforeAttemptContext.getRequest() |
Request<?> |
HandlerAfterAttemptContext.getRequest() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractRequestHandler.afterError(Request<?> request,
Exception e)
Deprecated.
|
void |
RequestHandler.afterError(Request<?> request,
Exception e)
Deprecated.
Runs any additional processing logic on a request after it has failed.
|
void |
StackedRequestHandler.afterError(Request<?> request,
Response<?> response,
Exception e) |
void |
IRequestHandler2.afterError(Request<?> request,
Response<?> response,
Exception e)
Runs any additional processing logic on a request after it has failed.
|
void |
RequestHandler2.afterError(Request<?> request,
Response<?> response,
Exception e) |
void |
AbstractRequestHandler.afterResponse(Request<?> request,
Object response,
TimingInfo timingInfo)
Deprecated.
|
void |
RequestHandler.afterResponse(Request<?> request,
Object response,
TimingInfo timingInfo)
Deprecated.
Runs any additional processing logic on the specified request (after is
has been executed by the client runtime).
|
void |
StackedRequestHandler.afterResponse(Request<?> request,
Response<?> response) |
void |
IRequestHandler2.afterResponse(Request<?> request,
Response<?> response)
Runs any additional processing logic on the specified request (after is has been executed by
the client runtime).
|
void |
RequestHandler2.afterResponse(Request<?> request,
Response<?> response) |
void |
AbstractRequestHandler.beforeRequest(Request<?> request)
Deprecated.
|
void |
StackedRequestHandler.beforeRequest(Request<?> request) |
void |
IRequestHandler2.beforeRequest(Request<?> request)
Runs any additional processing logic on the specified request (before it is executed by the
client runtime).
|
void |
RequestHandler.beforeRequest(Request<?> request)
Deprecated.
Runs any additional processing logic on the specified request (before it
is executed by the client runtime).
|
void |
RequestHandler2.beforeRequest(Request<?> request) |
HttpResponse |
StackedRequestHandler.beforeUnmarshalling(Request<?> request,
HttpResponse origHttpResponse) |
HttpResponse |
IRequestHandler2.beforeUnmarshalling(Request<?> request,
HttpResponse httpResponse)
Runs any additional processing logic on the specified response before it's unmarshalled.
|
HttpResponse |
RequestHandler2.beforeUnmarshalling(Request<?> request,
HttpResponse httpResponse) |
HandlerBeforeAttemptContext.HandlerBeforeAttemptContextBuilder |
HandlerBeforeAttemptContext.HandlerBeforeAttemptContextBuilder.withRequest(Request<?> request)
Fluent set for what the request should be on the eventual HandlerBeforeAttemptContext instance
|
HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder |
HandlerAfterAttemptContext.HandlerAfterAttemptContextBuilder.withRequest(Request<?> request)
Fluent set for what the request should be on the eventual HandlerAfterAttemptContext instance
|
Modifier and Type | Method and Description |
---|---|
Request<?> |
HttpResponse.getRequest()
Returns the original request associated with this response.
|
Modifier and Type | Method and Description |
---|---|
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext)
Deprecated.
Use
AmazonHttpClient.requestExecutionBuilder() to configure and execute a HTTP request. |
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext,
RequestConfig requestConfig) |
AmazonHttpClient.RequestExecutionBuilder |
AmazonHttpClient.RequestExecutionBuilder.request(Request<?> request)
Fluent setter for
Request |
Constructor and Description |
---|
HttpResponse(Request<?> request,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Constructs a new HttpResponse associated with the specified request.
|
HttpResponse(Request<?> request,
org.apache.http.client.methods.HttpRequestBase httpRequest,
org.apache.http.protocol.HttpContext context) |
RepeatableInputStreamRequestEntity(Request<?> request)
Creates a new RepeatableInputStreamRequestEntity using the information
from the specified request.
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.methods.HttpRequestBase |
ApacheHttpRequestFactory.create(Request<?> request,
HttpClientSettings settings) |
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
ApacheUtils.createResponse(Request<?> request,
org.apache.http.client.methods.HttpRequestBase method,
org.apache.http.HttpResponse apacheHttpResponse,
org.apache.http.protocol.HttpContext context)
Creates and initializes an HttpResponse object suitable to be passed to an HTTP response
handler object.
|
Modifier and Type | Method and Description |
---|---|
T |
HttpRequestFactory.create(Request<?> request,
HttpClientSettings settings)
A factory method for creating http requests accepted by the underlying
http client from the sdk request objects.
|
Constructor and Description |
---|
AwsResponseHandlerAdapter(HttpResponseHandler<AmazonWebServiceResponse<T>> delegate,
Request<?> request,
AWSRequestMetrics awsRequestMetrics,
MetadataCache responseMetadataCache) |
Modifier and Type | Method and Description |
---|---|
void |
SdkRequestRetryHeaderProvider.addSdkRequestRetryHeader(Request<?> request,
int attemptNum) |
Modifier and Type | Method and Description |
---|---|
Request<?> |
SignerProviderContext.getRequest() |
Modifier and Type | Method and Description |
---|---|
SignerProviderContext.Builder |
SignerProviderContext.Builder.withRequest(Request<?> request) |
Modifier and Type | Method and Description |
---|---|
abstract void |
RequestMetricCollector.collectMetrics(Request<?> request,
Response<?> response)
Used to collect the metric at the end of a request/response cycle.
|
Modifier and Type | Method and Description |
---|---|
static ThroughputMetricType |
ServiceMetricTypeGuesser.guessThroughputMetricType(Request<?> req,
String metricNameSuffix,
String byteCountMetricNameSuffix)
Returned the best-guessed throughput metric type for the given request,
or null if there is none or if metric is disabled.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientSideMonitoringRequestHandler.afterError(Request<?> request,
Response<?> response,
Exception e) |
void |
ClientSideMonitoringRequestHandler.afterResponse(Request<?> request,
Response<?> response) |
Modifier and Type | Method and Description |
---|---|
Request<OrigRequest> |
ProtocolRequestMarshaller.finishMarshalling()
Finializes the marshalling and produces a
Request object that can be sent for execution. |
Modifier and Type | Method and Description |
---|---|
Request<OrigRequest> |
JsonProtocolMarshaller.finishMarshalling() |
Request<?> |
JsonMarshallerContext.request() |
Modifier and Type | Method and Description |
---|---|
JsonMarshallerContext.Builder |
JsonMarshallerContext.Builder.request(Request<?> request) |
Modifier and Type | Method and Description |
---|---|
ClockSkewAdjuster.AdjustmentRequest |
ClockSkewAdjuster.AdjustmentRequest.clientRequest(Request<?> clientRequest) |
Modifier and Type | Method and Description |
---|---|
AuthRetryParameters |
AuthErrorRetryStrategy.shouldRetryWithAuthParam(Request<?> originalRequest,
HttpResponse response,
AmazonServiceException ase)
Returns an alternative signing context (consists of a new signer instance
and a new request endpoint) that should be used to retry the request.
|
Modifier and Type | Method and Description |
---|---|
Request<?> |
RetryPolicyContext.request() |
Modifier and Type | Method and Description |
---|---|
RetryPolicyContext.Builder |
RetryPolicyContext.Builder.request(Request<?> request) |
Modifier and Type | Method and Description |
---|---|
protected Request<CreateBucketRequest> |
AmazonS3Client.addIAMHeaders(Request<CreateBucketRequest> request,
CreateBucketRequest createBucketRequest)
Add IAM specific headers based on the credentials set & any optional
parameters added to the CreateBucketRequest object
|
protected <X extends AmazonWebServiceRequest> |
AmazonS3Client.createRequest(String bucketName,
String key,
X originalRequest,
HttpMethodName httpMethod)
Creates and initializes a new request object for the specified S3
resource.
|
protected <X extends AmazonWebServiceRequest> |
AmazonS3Client.createRequest(String bucketName,
String key,
X originalRequest,
HttpMethodName httpMethod,
URI endpoint) |
Modifier and Type | Method and Description |
---|---|
protected Request<CreateBucketRequest> |
AmazonS3Client.addIAMHeaders(Request<CreateBucketRequest> request,
CreateBucketRequest createBucketRequest)
Add IAM specific headers based on the credentials set & any optional
parameters added to the CreateBucketRequest object
|
protected Signer |
AmazonS3Client.createSigner(Request<?> request,
String bucketName,
String key)
Returns a "complete" S3 specific signer, taking into the S3 bucket, key,
and the current S3 client configuration into account.
|
protected Signer |
AmazonS3Client.createSigner(Request<?> request,
String bucketName,
String key,
boolean isAdditionalHeadRequestToFindRegion)
Returns a "complete" S3 specific signer, taking into the S3 bucket, key,
and the current S3 client configuration into account.
|
protected static void |
AmazonS3Client.populateRequesterPaysHeader(Request<?> request,
boolean isRequesterPays)
Populate the specified request with
Constants.REQUESTER_PAYS to header Headers.REQUESTER_PAYS_HEADER ,
if isRequesterPays is true. |
protected static void |
AmazonS3Client.populateRequestMetadata(Request<?> request,
ObjectMetadata metadata)
Populates the specified request object with the appropriate headers from
the
ObjectMetadata object. |
protected <T> void |
AmazonS3Client.presignRequest(Request<T> request,
HttpMethod methodName,
String bucketName,
String key,
Date expiration,
String subResource)
Pre-signs the specified request, using a signature query-string
parameter.
|
Modifier and Type | Method and Description |
---|---|
static URL |
ServiceUtils.convertRequestToUrl(Request<?> request)
Deprecated.
No longer used. May be removed in a future major version.
|
static URL |
ServiceUtils.convertRequestToUrl(Request<?> request,
boolean removeLeadingSlashInResourcePath)
Deprecated.
No longer used. May be removed in a future major version.
|
static URL |
ServiceUtils.convertRequestToUrl(Request<?> request,
boolean removeLeadingSlashInResourcePath,
boolean urlEncode)
Converts the specified request object into a URL, containing all the
specified parameters, the specified request endpoint, etc.
|
ObjectMetadata |
UploadObjectStrategy.invokeServiceCall(Request<RequestT> request)
Implement the behavior for making a http call to the S3 service.
|
void |
S3RequestEndpointResolver.resolveRequestEndpoint(Request<?> request)
Set the request's endpoint and resource path with the same region it was originally
configured for
|
void |
S3RequestEndpointResolver.resolveRequestEndpoint(Request<?> request,
String regionString)
Set the request's endpoint and resource path with the new region provided
|
AuthRetryParameters |
S3V4AuthErrorRetryStrategy.shouldRetryWithAuthParam(Request<?> request,
HttpResponse response,
AmazonServiceException ase) |
Modifier and Type | Method and Description |
---|---|
static String |
UriResourcePathUtils.addStaticQueryParamtersToRequest(Request<?> request,
String uriResourcePath)
Identifies the static query parameters in Uri resource path for and adds it to
request.
|
static URL |
RuntimeHttpUtils.convertRequestToUrl(Request<?> request,
boolean removeLeadingSlashInResourcePath,
boolean urlEncode)
Converts the specified request object into a URL, containing all the specified parameters, the specified request endpoint,
etc.
|
Copyright © 2024. All rights reserved.