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.
|
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractSigner.getCanonicalizedQueryString(Request<?> request) |
protected String |
AbstractSigner.getRequestPayload(Request<?> request) |
protected String |
AbstractSigner.getRequestPayloadWithoutQueryParams(Request<?> request) |
void |
Signer.sign(Request<?> request,
Credentials credentials) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractRequestHandler.afterError(Request<?> request,
Exception e) |
void |
RequestHandler.afterError(Request<?> request,
Exception e)
Runs any additional processing logic on a request after it has failed.
|
void |
AbstractRequestHandler.afterResponse(Request<?> request,
Object response,
TimingInfo timingInfo) |
void |
RequestHandler.afterResponse(Request<?> request,
Object response,
TimingInfo timingInfo)
Runs any additional processing logic on the specified request (after is
has been executed by the client runtime).
|
void |
AbstractRequestHandler.beforeRequest(Request<?> request) |
void |
RequestHandler.beforeRequest(Request<?> request)
Runs any additional processing logic on the specified request (before it
is executed by the client runtime).
|
Modifier and Type | Method and Description |
---|---|
Request<?> |
HttpResponse.getRequest()
Returns the original request associated with this response.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
NeteaseHttpClient.execute(Request<?> request,
HttpResponseHandler<WebServiceResponse<T>> responseHandler,
HttpResponseHandler<ServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
Constructor and Description |
---|
HttpResponse(Request<?> request,
org.apache.http.client.methods.HttpRequestBase httpRequest)
Constructs a new HttpResponse associated with the specified request.
|
Modifier and Type | Method and Description |
---|---|
protected <X extends WebServiceRequest> |
NosClient.createRequest(String bucketName,
String key,
X originalRequest,
HttpMethodName httpMethod)
Creates and initializes a new request object for the specified NOS resource.
|
Modifier and Type | Method and Description |
---|---|
protected Signer |
NosClient.createSigner(Request<?> request,
String bucketName,
String key) |
protected static void |
NosClient.populateRequestMetadata(Request<?> request,
ObjectMetadata metadata)
Populates the specified request object with the appropriate headers from the
ObjectMetadata object. |
protected <T> void |
NosClient.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)
Converts the specified request object into a URL, containing all the
specified parameters, the specified request endpoint, etc.
|
static <T> String |
RestUtils.makeNosCanonicalString(String method,
String resource,
Request<T> request,
String expires)
Calculate the canonical string for a REST/HTTP request to Nos.
|
void |
NosSigner.sign(Request<?> request,
Credentials credentials) |
void |
NosQueryStringSigner.sign(Request<?> request,
Credentials credentials) |
Modifier and Type | Method and Description |
---|---|
static String |
HttpUtils.encodeParameters(Request<?> request)
Creates an encoded query string from all the parameters in the specified
request.
|
static boolean |
HttpUtils.usePayloadForQueryParameters(Request<?> request) |
Copyright © 2017. All Rights Reserved.