|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.http.HttpRequest
public class HttpRequest
Constructor Summary | |
---|---|
HttpRequest(HttpMethodName methodName)
Construct request with http method name Supported methods are: GET POST DELETE HEAD PUT |
Method Summary | |
---|---|
void |
addHeader(String name,
String value)
Adds the specified header name and value to this request. |
void |
addParameter(String name,
String value)
|
InputStream |
getContent()
Returns the input stream containing the content to include with this request. |
URI |
getEndpoint()
Returns the service endpoint (ex: "https://ec2.amazonaws.com") to which this HTTP request should be sent. |
Map<String,String> |
getHeaders()
Returns a map of the headers associated with this request |
HttpMethodName |
getMethodName()
Returns http request method |
AmazonWebServiceRequest |
getOriginalRequest()
Returns the original request, as constructed by the SDK user, for which this HTTP request is being executed. |
Map<String,String> |
getParameters()
Returns list of request parameters |
String |
getResourcePath()
Returns the resource path associated with this request. |
String |
getServiceName()
Returns the name of the Amazon service this request is for. |
void |
removeHeader(String name)
Removes header from request |
void |
setContent(InputStream inputStream)
Sets the input stream containing the content to include with this request. |
void |
setEndpoint(URI endpoint)
Sets the service endpoint (ex: "https://ec2.amazonaws.com") to which this HTTP request should be sent. |
void |
setOriginalRequest(AmazonWebServiceRequest request)
Sets the original request, as constructed by the SDK user, for which this HTTP request is being executed. |
void |
setParameters(Map<String,String> parameters)
|
void |
setResourcePath(String resourcePath)
Sets the resource path associated with this request. |
void |
setServiceName(String serviceName)
Sets the name of the Amazon service this request is for. |
String |
toString()
|
HttpRequest |
withParameter(String name,
String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpRequest(HttpMethodName methodName)
methodName
- http method nameMethod Detail |
---|
public HttpMethodName getMethodName()
public void setServiceName(String serviceName)
serviceName
- The name of the Amazon service this request is for.public String getServiceName()
public URI getEndpoint()
public void setEndpoint(URI endpoint)
endpoint
- The service endpoint to which this HTTP request should be
sent.public Map<String,String> getParameters()
public Map<String,String> getHeaders()
public void addHeader(String name, String value)
name
- The name of the header.value
- The value of the header.public void removeHeader(String name)
name
- header name to removepublic void addParameter(String name, String value)
public void setParameters(Map<String,String> parameters)
public HttpRequest withParameter(String name, String value)
public String getResourcePath()
public void setResourcePath(String resourcePath)
resourcePath
- The resource path associated with this request.public void setContent(InputStream inputStream)
inputStream
- The input stream containing the content to include with this
request.public InputStream getContent()
public void setOriginalRequest(AmazonWebServiceRequest request)
request
- The original request constructed by the end user.public AmazonWebServiceRequest getOriginalRequest()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |