T
- The type of original, user facing request represented by this
request.public interface Request<T>
This class is only intended for internal use inside the AWS client libraries. Callers shouldn't ever interact directly with objects of this class.
限定符和类型 | 方法和说明 |
---|---|
void |
addHeader(String name,
String value)
Adds the specified header to this request.
|
void |
addParameter(String name,
String value)
Adds the specified request parameter to this request.
|
InputStream |
getContent()
Returns the optional stream containing the payload data to include for
this request.
|
URI |
getEndpoint()
Returns the service endpoint (ex: "https://ec2.amazonaws.com") to which
this request should be sent.
|
Map<String,String> |
getHeaders()
Returns a map of all the headers included in this request.
|
HttpMethodName |
getHttpMethod()
Returns the HTTP method (GET, POST, etc) to use when sending this
request.
|
SCSWebServiceRequest |
getOriginalRequest()
Returns the original, user facing request object which this internal
request object is representing.
|
Map<String,String> |
getParameters()
Returns a map of all parameters in this request.
|
String |
getResourcePath()
Returns the path to the resource being requested.
|
String |
getServiceName()
Returns the name of the Amazon service this request is for.
|
int |
getTimeOffset()
Returns the optional value for time offset for this request.
|
void |
setContent(InputStream content)
Sets the optional stream containing the payload data to include for this
request.
|
void |
setEndpoint(URI endpoint)
Sets the service endpoint (ex: "https://ec2.amazonaws.com") to which this
request should be sent.
|
void |
setHeaders(Map<String,String> headers)
Sets all headers, clearing any existing ones.
|
void |
setHttpMethod(HttpMethodName httpMethod)
Sets the HTTP method (GET, POST, etc) to use when sending this request.
|
void |
setParameters(Map<String,String> parameters)
Sets all parameters, clearing any existing values.
|
void |
setResourcePath(String path)
Sets the path to the resource being requested.
|
void |
setTimeOffset(int timeOffset)
Sets the optional value for time offset for this request.
|
Request<T> |
withParameter(String name,
String value)
Adds the specified request parameter to this request, and returns the
updated request object.
|
Request<T> |
withTimeOffset(int timeOffset)
Sets the optional value for time offset for this request.
|
void addHeader(String name, String value)
name
- The name of the header to add.value
- The header's value.Map<String,String> getHeaders()
void setHeaders(Map<String,String> headers)
void setResourcePath(String path)
path
- The path to the resource being requested.String getResourcePath()
void addParameter(String name, String value)
name
- The name of the request parameter.value
- The value of the request parameter.Request<T> withParameter(String name, String value)
name
- The name of the request parameter.value
- The value of the request parameter.Map<String,String> getParameters()
void setParameters(Map<String,String> parameters)
HttpMethodName getHttpMethod()
void setHttpMethod(HttpMethodName httpMethod)
httpMethod
- The HTTP method to use when sending this request.InputStream getContent()
void setContent(InputStream content)
content
- The optional stream containing the payload data to include for
this request.String getServiceName()
SCSWebServiceRequest getOriginalRequest()
int getTimeOffset()
void setTimeOffset(int timeOffset)
timeOffset
- The optional value for time offset (in seconds) for this request.Request<T> withTimeOffset(int timeOffset)
URI getEndpoint()
void setEndpoint(URI endpoint)
endpoint
- The service endpoint to which this request should be sent.Copyright © 2016. All rights reserved.