HttpRequest that can be used to change properties of the current
request without modifying the original object.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final HttpRequest | |
| private RequestLine | |
| private final HttpHost | |
| private URI | |
| private ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort()
Implements org. |
| public String | getMethod()
Implements org. GET,
PUT, POST, or other.
|
| public HttpRequest | |
| public HttpParams | getParams()
Overrides org. Implements org.
Deprecated
(4.3) use
Returns the parameters effective for this message as set by
org..
setParams(HttpParams).
|
| public ProtocolVersion | getProtocolVersion()
Implements org. |
| public RequestLine | getRequestLine()
Implements org. |
| public HttpHost | |
| public URI | getURI()
Implements org. http://example.org/path/to/file.
|
| public boolean | isAborted()
Implements org. |
| public void | |
| public void | |
| public String | |
| public static HttpRequestWrapper | Returns: mutable request wrappering the original oneoriginal request request)Creates a mutable wrapper of the original request. |
| public static HttpRequestWrapper | Returns: mutable request wrappering the original oneoriginal request request, final HttpHost original target, if explicitly specified target)Creates a mutable wrapper of the original request. |
| method | back to summary |
|---|---|
| private final String method | |
| original | back to summary |
|---|---|
| private final HttpRequest original | |
| requestLine | back to summary |
|---|---|
| private RequestLine requestLine | |
| target | back to summary |
|---|---|
| private final HttpHost target | |
| uri | back to summary |
|---|---|
| private URI uri | |
| version | back to summary |
|---|---|
| private ProtocolVersion version | |
| HttpRequestWrapper | back to summary |
|---|---|
| private HttpRequestWrapper(final HttpRequest request, final HttpHost target) | |
| abort | back to summary |
|---|---|
| public void abort() throws UnsupportedOperationException Implements org. Doc from org. Aborts execution of the request.
| |
| 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() | |
| getParams | back to summary |
|---|---|
| public HttpParams getParams() Overrides org. Implements org. Doc from org. Deprecated (4.3) use
Returns the parameters effective for this message as set by
| |
| 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.
| |
| getTarget | back to summary |
|---|---|
public HttpHost getTarget()
| |
| 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
| |
| isAborted | back to summary |
|---|---|
| public boolean isAborted() Implements org. Doc from org. Tests if the request execution has been aborted.
| |
| setProtocolVersion | back to summary |
|---|---|
| public void setProtocolVersion(final ProtocolVersion version) | |
| setURI | back to summary |
|---|---|
| public void setURI(final URI uri) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| wrap | back to summary |
|---|---|
| public static HttpRequestWrapper wrap(final HttpRequest request) Creates a mutable wrapper of the original request.
| |
| wrap | back to summary |
|---|---|
| public static HttpRequestWrapper wrap(final HttpRequest request, final HttpHost target) Creates a mutable wrapper of the original request.
| |
| Modifier and Type | Field and Description |
|---|---|
| private HttpEntity |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | expectContinue()
Implements org. |
| public HttpEntity | getEntity()
Implements org. |
| public void | setEntity(final HttpEntity
the entity to send. entity)Implements org. |
| entity | back to summary |
|---|---|
| private HttpEntity entity | |
| HttpEntityEnclosingRequestWrapper | back to summary |
|---|---|
| pack-priv HttpEntityEnclosingRequestWrapper(final HttpEntityEnclosingRequest request, final HttpHost target) | |
| expectContinue | back to summary |
|---|---|
| public boolean expectContinue() Implements org. Doc from org. Tells if this request should use the expect-continue handshake. The expect continue handshake gives the server a chance to decide whether to accept the entity enclosing request before the possibly lengthy entity is sent across the wire.
| |
| getEntity | back to summary |
|---|---|
| public HttpEntity getEntity() Implements org. Doc from org. Returns the entity associated with this request.
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(final HttpEntity entity) Implements org. Doc from org. Associates the entity with this request.
| |