public class HttpUriRequestBase extends BasicClassicHttpRequest implements HttpUriRequest, CancellableDependency
Constructor and Description |
---|
HttpUriRequestBase(String method,
URI requestUri) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts execution of the request.
|
boolean |
cancel()
Cancels the ongoing operation or process.
|
RequestConfig |
getConfig()
Returns actual request configuration.
|
boolean |
isAborted()
Tests if the request execution has been aborted.
|
boolean |
isCancelled()
Determines whether the process or operation has been cancelled.
|
void |
reset()
Resets internal state of the request making it reusable.
|
void |
setConfig(RequestConfig requestConfig) |
void |
setDependency(Cancellable cancellable)
Sets
Cancellable dependency on another ongoing process or
operation represented by Cancellable . |
String |
toString()
Returns a string representation of the object.
|
getEntity, setEntity
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, 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, 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
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
getEntity, setEntity
public void abort() throws UnsupportedOperationException
HttpUriRequest
abort
in interface HttpUriRequest
UnsupportedOperationException
- if the abort operation
is not supported / cannot be implemented.public boolean cancel()
Cancellable
cancel
in interface Cancellable
true
if the operation or process has been cancelled as a result of
this method call or false
if it has already been cancelled or not started.public RequestConfig getConfig()
Configurable
getConfig
in interface Configurable
public boolean isAborted()
HttpUriRequest
isAborted
in interface HttpUriRequest
true
if the request execution has been aborted,
false
otherwise.public boolean isCancelled()
CancellableDependency
isCancelled
in interface CancellableDependency
public void reset()
public void setConfig(RequestConfig requestConfig)
public void setDependency(Cancellable cancellable)
CancellableDependency
Cancellable
dependency on another ongoing process or
operation represented by Cancellable
.setDependency
in interface CancellableDependency
public String toString()
Object
toString
method returns a
string that "textually represents" this object. The result should be a concise but informative
representation that is easy for a person to read. It is recommended that all subclasses override
this method.
The toString
method for class Object
returns a string consisting of the name of
the class of which the object is an instance, the at-sign character `@
', and the unsigned
hexadecimal representation of the hash code of the object. In other words, this method returns a
string equal to the value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class BasicHttpRequest