HttpExecutionAware@Deprecated
public interface AbortableHttpRequest
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
已过时。
Aborts this http request.
|
void |
setConnectionRequest(ClientConnectionRequest connRequest)
已过时。
Sets the
ClientConnectionRequest
callback that can be used to abort a long-lived request for a connection. |
void |
setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
已过时。
Sets the
ConnectionReleaseTrigger callback that can
be used to abort an active connection. |
void setConnectionRequest(ClientConnectionRequest connRequest) throws java.io.IOException
ClientConnectionRequest
callback that can be used to abort a long-lived request for a connection.
If the request is already aborted, throws an IOException.java.io.IOExceptionClientConnectionManagervoid setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger) throws java.io.IOException
ConnectionReleaseTrigger callback that can
be used to abort an active connection.
Typically, this will be the
ManagedClientConnection itself.
If the request is already aborted, throws an IOException.java.io.IOExceptionvoid abort()
HttpClient.execute(HttpUriRequest),
HttpClient.execute(depends.org.apache.http.HttpHost,
depends.org.apache.http.HttpRequest),
HttpClient.execute(HttpUriRequest,
depends.org.apache.http.protocol.HttpContext),
HttpClient.execute(depends.org.apache.http.HttpHost,
depends.org.apache.http.HttpRequest, depends.org.apache.http.protocol.HttpContext)