Top Description Methods
org.apache.http.client.methods

public Interface HttpUriRequest

extends HttpRequest
Known Direct Implementers
org.apache.http.impl.client.RequestWrapper, org.apache.http.client.methods.HttpRequestBase, org.apache.http.client.methods.HttpRequestWrapper
Imports
java.net.URI, org.apache.http.HttpRequest

Extended version of the HttpRequest interface that provides convenience methods to access request properties such as request URI and method type.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
abort()

Aborts execution of the request.

public String
getMethod()

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

public URI
getURI()

Returns the URI this request uses, such as http://example.org/path/to/file.

public boolean

Returns:

true if the request execution has been aborted, false otherwise.
isAborted
()

Tests if the request execution has been aborted.

Inherited from org.apache.http.HttpRequest:
getRequestLine

Method Detail

abortback to summary
public void abort() throws UnsupportedOperationException

Aborts execution of the request.

Exceptions
UnsupportedOperationException:
if the abort operation is not supported / cannot be implemented.
getMethodback to summary
public String getMethod()

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

getURIback to summary
public URI getURI()

Returns the URI this request uses, such as http://example.org/path/to/file.

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

isAbortedback to summary
public boolean isAborted()

Tests if the request execution has been aborted.

Returns:boolean

true if the request execution has been aborted, false otherwise.