Interface HttpUriRequest
-
- All Superinterfaces:
org.apache.hc.core5.http.ClassicHttpRequest
,Configurable
,org.apache.hc.core5.http.HttpEntityContainer
,org.apache.hc.core5.http.HttpMessage
,org.apache.hc.core5.http.HttpRequest
,org.apache.hc.core5.http.MessageHeaders
- All Known Implementing Classes:
HttpDelete
,HttpGet
,HttpHead
,HttpOptions
,HttpPatch
,HttpPost
,HttpPut
,HttpTrace
,HttpUriRequestBase
public interface HttpUriRequest extends org.apache.hc.core5.http.ClassicHttpRequest, Configurable
Extended version of theClassicHttpRequest
interface 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 void
abort()
Aborts execution of the request.boolean
isAborted()
Tests if the request execution has been aborted.-
Methods inherited from interface org.apache.hc.client5.http.config.Configurable
getConfig
-
Methods inherited from interface org.apache.hc.core5.http.HttpMessage
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
-
-
-
-
Method Detail
-
abort
void abort() throws java.lang.UnsupportedOperationException
Aborts 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:
true
if the request execution has been aborted,false
otherwise.
-
-