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)
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(org.apache.hc.core5.concurrent.Cancellable cancellable) |
String |
toString() |
getEntity, setEntity
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersion
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUri
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
public boolean cancel()
cancel
in interface org.apache.hc.core5.concurrent.Cancellable
public boolean isCancelled()
isCancelled
in interface org.apache.hc.core5.concurrent.CancellableDependency
public void setDependency(org.apache.hc.core5.concurrent.Cancellable cancellable)
setDependency
in interface org.apache.hc.core5.concurrent.CancellableDependency
public void reset()
public void abort() throws UnsupportedOperationException
HttpUriRequest
abort
in interface HttpUriRequest
UnsupportedOperationException
- if the abort operation
is not supported / cannot be implemented.public boolean isAborted()
HttpUriRequest
isAborted
in interface HttpUriRequest
true
if the request execution has been aborted,
false
otherwise.public void setConfig(RequestConfig requestConfig)
requestConfig
- the request configuration.public RequestConfig getConfig()
Configurable
getConfig
in interface Configurable
public String toString()
toString
in class org.apache.hc.core5.http.message.BasicHttpRequest
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.