public interface HttpUriRequest extends HttpRequest
HttpRequest
interface that provides
convenience methods to access request properties such as request URI
and method type.
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts execution of the request.
|
java.lang.String |
getMethod()
Returns the HTTP method this request uses, such as
GET ,
PUT , POST , or other. |
java.net.URI |
getURI()
Returns the URI this request uses, such as
http://example.org/path/to/file . |
boolean |
isAborted()
Tests if the request execution has been aborted.
|
getRequestLine
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
java.lang.String getMethod()
GET
,
PUT
, POST
, or other.java.net.URI getURI()
http://example.org/path/to/file
.void abort() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the abort operation
is not supported / cannot be implemented.boolean isAborted()
true
if the request execution has been aborted,
false
otherwise.