@NotThreadSafe @Deprecated public class RequestWrapper extends AbstractHttpMessage implements HttpUriRequest
HttpRequests that can be used to change
properties of the current request without modifying the original
object.
This class is also capable of resetting the request headers to
the state of the original request.headergroup, params| 构造器和说明 |
|---|
RequestWrapper(HttpRequest request)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
已过时。
Aborts execution of the request.
|
int |
getExecCount()
已过时。
|
java.lang.String |
getMethod()
已过时。
Returns the HTTP method this request uses, such as
GET,
PUT, POST, or extension. |
HttpRequest |
getOriginal()
已过时。
|
ProtocolVersion |
getProtocolVersion()
已过时。
Returns the protocol version this message is compatible with.
|
RequestLine |
getRequestLine()
已过时。
Returns the request line of this request.
|
java.net.URI |
getURI()
已过时。
Returns the URI this request uses, such as
http://example.org/path/to/file. |
void |
incrementExecCount()
已过时。
|
boolean |
isAborted()
已过时。
Tests if the request execution has been aborted.
|
boolean |
isRepeatable()
已过时。
|
void |
resetHeaders()
已过时。
|
void |
setMethod(java.lang.String method)
已过时。
|
void |
setProtocolVersion(ProtocolVersion version)
已过时。
|
void |
setURI(java.net.URI uri)
已过时。
|
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamspublic RequestWrapper(HttpRequest request) throws ProtocolException
public void resetHeaders()
public java.lang.String getMethod()
HttpUriRequestGET,
PUT, POST, or extension.getMethod 在接口中 HttpUriRequestpublic void setMethod(java.lang.String method)
public ProtocolVersion getProtocolVersion()
HttpMessagegetProtocolVersion 在接口中 HttpMessagepublic void setProtocolVersion(ProtocolVersion version)
public java.net.URI getURI()
HttpUriRequesthttp://example.org/path/to/file.
Implementations are encouraged to return the URI that was initially requested.
To find the final URI after any redirects have been processed, please see the section entitled HTTP execution context in the HttpClient Tutorial
getURI 在接口中 HttpUriRequestpublic void setURI(java.net.URI uri)
public RequestLine getRequestLine()
HttpRequestgetRequestLine 在接口中 HttpRequestpublic void abort()
throws java.lang.UnsupportedOperationException
HttpUriRequestabort 在接口中 HttpUriRequestjava.lang.UnsupportedOperationException - if the abort operation
is not supported / cannot be implemented.public boolean isAborted()
HttpUriRequestisAborted 在接口中 HttpUriRequesttrue if the request execution has been aborted,
false otherwise.public HttpRequest getOriginal()
public boolean isRepeatable()
public int getExecCount()
public void incrementExecCount()