public class HttpUriRequestBase extends BasicClassicHttpRequest implements HttpUriRequest, CancellableDependency
| Constructor and Description |
|---|
HttpUriRequestBase(String method,
URI requestUri)
Constructs a new instance with the given method and request URI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts execution of the request.
|
boolean |
cancel() |
RequestConfig |
getConfig()
Gets the 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)
Sets the request configuration.
|
void |
setDependency(Cancellable cancellable) |
String |
toString() |
getEntity, setEntityaddHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, 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, setVersioncontainsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIteratorgetEntity, setEntitypublic boolean cancel()
cancel in interface Cancellablepublic boolean isCancelled()
isCancelled in interface CancellableDependencypublic void setDependency(Cancellable cancellable)
setDependency in interface 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)
requestConfig - the request configuration.public RequestConfig getConfig()
ConfigurablegetConfig in interface Configurablepublic String toString()
toString in class BasicHttpRequestCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.