Package org.apache.http.client.methods
Interface HttpUriRequest
-
- All Superinterfaces:
HttpMessage,HttpRequest
- All Known Implementing Classes:
BaseDavRequest,EntityEnclosingRequestWrapper,HttpBind,HttpCheckin,HttpCheckout,HttpCopy,HttpDelete,HttpDelete,HttpEntityEnclosingRequestBase,HttpGet,HttpHead,HttpLabel,HttpLock,HttpMerge,HttpMkcol,HttpMkworkspace,HttpMove,HttpOptions,HttpOptions,HttpOrderpatch,HttpPatch,HttpPoll,HttpPost,HttpPropfind,HttpProppatch,HttpPut,HttpRebind,HttpReport,HttpRequestBase,HttpRequestWrapper,HttpSearch,HttpSubscribe,HttpTrace,HttpUnbind,HttpUnlock,HttpUnsubscribe,HttpUpdate,HttpVersionControl,RequestWrapper
public interface HttpUriRequest extends HttpRequest
Extended version of theHttpRequestinterface that provides convenience methods to access request properties such as request URI and method type.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabort()Aborts execution of the request.java.lang.StringgetMethod()Returns the HTTP method this request uses, such asGET,PUT,POST, or other.java.net.URIgetURI()Returns the URI this request uses, such ashttp://example.org/path/to/file.booleanisAborted()Tests if the request execution has been aborted.-
Methods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from interface org.apache.http.HttpRequest
getRequestLine
-
-
-
-
Method Detail
-
getMethod
java.lang.String getMethod()
Returns the HTTP method this request uses, such asGET,PUT,POST, or other.
-
getURI
java.net.URI getURI()
Returns the URI this request uses, such ashttp://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
-
abort
void abort() throws java.lang.UnsupportedOperationExceptionAborts execution of the request.- Throws:
java.lang.UnsupportedOperationException- if the abort operation is not supported / cannot be implemented.
-
isAborted
boolean isAborted()
Tests if the request execution has been aborted.- Returns:
trueif the request execution has been aborted,falseotherwise.
-
-