public class RequestMessage extends HttpMesssage
构造器和说明 |
---|
RequestMessage()
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
void |
addParameter(java.lang.String key,
java.lang.String value) |
java.net.URI |
getEndpoint() |
HttpMethod |
getMethod()
获取HTTP的请求方法。
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
java.lang.String |
getResourcePath() |
boolean |
isRepeatable()
Whether or not the request can be repeatedly sent.
|
void |
setEndpoint(java.net.URI endpoint) |
void |
setMethod(HttpMethod method)
设置HTTP的请求方法。
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters) |
void |
setResourcePath(java.lang.String resourcePath) |
close, getContent, getContentLength, getHeaders, setContent, setContentLength, setHeaders
public HttpMethod getMethod()
public void setMethod(HttpMethod method)
method
- HTTP的请求方法。public java.net.URI getEndpoint()
public void setEndpoint(java.net.URI endpoint)
endpoint
- the endpoint to setpublic java.lang.String getResourcePath()
public void setResourcePath(java.lang.String resourcePath)
resourcePath
- the resourcePath to setpublic java.util.Map<java.lang.String,java.lang.String> getParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- the parameters to setpublic void addParameter(java.lang.String key, java.lang.String value)
public boolean isRepeatable()