public class HttpUriRequestBase extends BasicClassicHttpRequest implements HttpUriRequest, CancellableDependency
| 构造器和说明 |
|---|
HttpUriRequestBase(String method,
URI requestUri) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
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()
Cancellablecancel 在接口中 Cancellabletrue 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 boolean isCancelled()
CancellableDependencyisCancelled 在接口中 CancellableDependencypublic void setDependency(Cancellable cancellable)
CancellableDependencyCancellable dependency on another ongoing process or
operation represented by Cancellable.setDependency 在接口中 CancellableDependencypublic void reset()
public void abort()
throws UnsupportedOperationException
HttpUriRequestabort 在接口中 HttpUriRequestUnsupportedOperationException - if the abort operation
is not supported / cannot be implemented.public boolean isAborted()
HttpUriRequestisAborted 在接口中 HttpUriRequesttrue if the request execution has been aborted,
false otherwise.public void setConfig(RequestConfig requestConfig)
public RequestConfig getConfig()
ConfigurablegetConfig 在接口中 Configurablepublic String toString()
toString 在类中 BasicHttpRequestCopyright © 2023. All rights reserved.