public class HttpUriRequestBase extends org.apache.hc.core5.http.message.BasicClassicHttpRequest implements HttpUriRequest, org.apache.hc.core5.concurrent.CancellableDependency
| Constructor and Description |
|---|
HttpUriRequestBase(String method,
URI requestUri) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts execution of the request.
|
boolean |
cancel() |
RequestConfig |
getConfig()
Returns actual request configuration.
|
boolean |
isAborted()
Tests if the request execution has been aborted.
|
boolean |
isCancelled() |
void |
reset()
Resets internal state of the request making it reusable.
|
void |
setConfig(RequestConfig requestConfig) |
void |
setDependency(org.apache.hc.core5.concurrent.Cancellable cancellable) |
String |
toString() |
getEntity, setEntityaddHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setUri, setVersionaddHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUriaddHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersionpublic boolean cancel()
cancel in interface org.apache.hc.core5.concurrent.Cancellablepublic boolean isCancelled()
isCancelled in interface org.apache.hc.core5.concurrent.CancellableDependencypublic void setDependency(org.apache.hc.core5.concurrent.Cancellable cancellable)
setDependency in interface org.apache.hc.core5.concurrent.CancellableDependencypublic void reset()
public void abort()
throws UnsupportedOperationException
HttpUriRequestabort in interface HttpUriRequestUnsupportedOperationException - if the abort operation
is not supported / cannot be implemented.public boolean isAborted()
HttpUriRequestisAborted in interface HttpUriRequesttrue if the request execution has been aborted,
false otherwise.public void setConfig(RequestConfig requestConfig)
public RequestConfig getConfig()
ConfigurablegetConfig in interface Configurablepublic String toString()
toString in class org.apache.hc.core5.http.message.BasicHttpRequestCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.