|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of original, user facing request represented by this
request.public interface Request<T>
Represents a request being sent to an Amazon Web Service, including the parameters being sent as part of the request, the endpoint to which the request should be sent, etc.
This class is only intended for internal use inside the AWS client libraries. Callers shouldn't ever interact directly with objects of this class.
Method Summary | |
---|---|
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. |
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. |
AmazonWebServiceRequest |
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. |
void |
setEndpoint(URI endpoint)
Sets the service endpoint (ex: "https://ec2.amazonaws.com") to which this request should be sent. |
void |
setResourcePath(String path)
Sets the path to the resource being requested. |
Request<T> |
withParameter(String name,
String value)
Adds the specified request parameter to this request, and returns the updated request object. |
Method Detail |
---|
void addHeader(String name, String value)
name
- The name of the header to add.value
- The header's value.Map<String,String> getHeaders()
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()
URI getEndpoint()
void setEndpoint(URI endpoint)
endpoint
- The service endpoint to which this request should be sent.String getServiceName()
AmazonWebServiceRequest getOriginalRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |