Deprecated
(4.3) do not use.
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.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private final HttpRequest | |
| private URI | |
| private ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort()
Implements org. |
| public int | |
| public String | getMethod()
Implements org. GET,
PUT, POST, or other.
|
| public HttpRequest | |
| public ProtocolVersion | getProtocolVersion()
Implements org. |
| public RequestLine | getRequestLine()
Implements org. |
| public URI | getURI()
Implements org. http://example.org/path/to/file.
|
| public void | |
| public boolean | isAborted()
Implements org. |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void |
| execCount | back to summary |
|---|---|
| private int execCount | |
| method | back to summary |
|---|---|
| private String method | |
| original | back to summary |
|---|---|
| private final HttpRequest original | |
| uri | back to summary |
|---|---|
| private URI uri | |
| version | back to summary |
|---|---|
| private ProtocolVersion version | |
| RequestWrapper | back to summary |
|---|---|
| public RequestWrapper(final HttpRequest request) throws ProtocolException | |
| abort | back to summary |
|---|---|
| public void abort() throws UnsupportedOperationException Implements org. Doc from org. Aborts execution of the request.
| |
| getExecCount | back to summary |
|---|---|
| public int getExecCount() | |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements org. Doc from org. Returns the HTTP method this request uses, such as
| |
| getOriginal | back to summary |
|---|---|
| public HttpRequest getOriginal() | |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() Implements org. Doc from org. Returns the protocol version this message is compatible with.
| |
| getRequestLine | back to summary |
|---|---|
| public RequestLine getRequestLine() Implements org. Doc from org. Returns the request line of this request.
| |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Returns the URI this request uses, such as
Note that the URI may be absolute URI (as above) or may be a relative URI. 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
| |
| incrementExecCount | back to summary |
|---|---|
| public void incrementExecCount() | |
| isAborted | back to summary |
|---|---|
| public boolean isAborted() Implements org. Doc from org. Tests if the request execution has been aborted.
| |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() | |
| resetHeaders | back to summary |
|---|---|
| public void resetHeaders() | |
| setMethod | back to summary |
|---|---|
| public void setMethod(final String method) | |
| setProtocolVersion | back to summary |
|---|---|
| public void setProtocolVersion(final ProtocolVersion version) | |
| setURI | back to summary |
|---|---|
| public void setURI(final URI uri) | |