public class HttpRequest extends Object
| 构造器和说明 | 
|---|
HttpRequest(HttpMethodName methodName)
Construct request with http method name
 Supported methods are: GET POST DELETE HEAD PUT 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
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 
 | 
SCSWebServiceRequest | 
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(SCSWebServiceRequest 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)  | 
public HttpRequest(HttpMethodName methodName)
methodName - http method namepublic 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 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(SCSWebServiceRequest request)
request - The original request constructed by the end user.public SCSWebServiceRequest getOriginalRequest()
Copyright © 2016. All rights reserved.