HttpRequest interface that provides
convenience methods to access request properties such as request URI
and method type.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public URI | |
| public boolean | Returns: true if the request execution has been aborted,
false otherwise.Tests if the request execution has been aborted. |
| abort | back to summary |
|---|---|
| public void abort() throws UnsupportedOperationException Aborts execution of the request.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Returns the HTTP method this request uses, such as | |
| getURI | back to summary |
|---|---|
| public URI getURI() 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() Tests if the request execution has been aborted.
| |