Class HttpUriRequestBase
java.lang.Object
org.apache.hc.core5.http.message.HeaderGroup
org.apache.hc.core5.http.message.BasicHttpRequest
org.apache.hc.core5.http.message.BasicClassicHttpRequest
org.apache.hc.client5.http.classic.methods.HttpUriRequestBase
- All Implemented Interfaces:
Serializable, HttpUriRequest, Configurable, org.apache.hc.core5.concurrent.Cancellable, org.apache.hc.core5.concurrent.CancellableDependency, org.apache.hc.core5.http.ClassicHttpRequest, org.apache.hc.core5.http.HttpEntityContainer, org.apache.hc.core5.http.HttpMessage, org.apache.hc.core5.http.HttpRequest, org.apache.hc.core5.http.MessageHeaders
- Direct Known Subclasses:
HttpDelete, HttpGet, HttpHead, HttpOptions, HttpPatch, HttpPost, HttpPut, HttpTrace
public class HttpUriRequestBase
extends org.apache.hc.core5.http.message.BasicClassicHttpRequest
implements HttpUriRequest, org.apache.hc.core5.concurrent.CancellableDependency
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicMarkableReference<org.apache.hc.core5.concurrent.Cancellable> private RequestConfigprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Aborts execution of the request.booleancancel()Returns actual request configuration.booleanTests if the request execution has been aborted.booleanvoidreset()Resets internal state of the request making it reusable.voidsetConfig(RequestConfig requestConfig) voidsetDependency(org.apache.hc.core5.concurrent.Cancellable cancellable) toString()Methods inherited from class org.apache.hc.core5.http.message.BasicClassicHttpRequest
getEntity, setEntityMethods inherited from class org.apache.hc.core5.http.message.BasicHttpRequest
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersionMethods inherited from class org.apache.hc.core5.http.message.HeaderGroup
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.HttpEntityContainer
getEntity, setEntityMethods inherited from interface org.apache.hc.core5.http.HttpMessage
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersionMethods inherited from interface org.apache.hc.core5.http.HttpRequest
getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUriMethods inherited from interface org.apache.hc.core5.http.MessageHeaders
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
cancellableRef
-
requestConfig
-
-
Constructor Details
-
HttpUriRequestBase
-
-
Method Details
-
cancel
public boolean cancel()- Specified by:
cancelin interfaceorg.apache.hc.core5.concurrent.Cancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.apache.hc.core5.concurrent.CancellableDependency
-
setDependency
public void setDependency(org.apache.hc.core5.concurrent.Cancellable cancellable) - Specified by:
setDependencyin interfaceorg.apache.hc.core5.concurrent.CancellableDependency- Since:
- 4.2
-
reset
public void reset()Resets internal state of the request making it reusable.- Since:
- 4.2
-
abort
Description copied from interface:HttpUriRequestAborts execution of the request.- Specified by:
abortin interfaceHttpUriRequest- Throws:
UnsupportedOperationException- if the abort operation is not supported / cannot be implemented.
-
isAborted
public boolean isAborted()Description copied from interface:HttpUriRequestTests if the request execution has been aborted.- Specified by:
isAbortedin interfaceHttpUriRequest- Returns:
trueif the request execution has been aborted,falseotherwise.
-
setConfig
-
getConfig
Description copied from interface:ConfigurableReturns actual request configuration.- Specified by:
getConfigin interfaceConfigurable
-
toString
- Overrides:
toStringin classorg.apache.hc.core5.http.message.BasicHttpRequest
-