AbortableHttpRequestpublic interface AbortableHttpRequest Interface representing an HTTP request that can be aborted by shutting
down the underlying HTTP connection. |
Methods Summary |
---|
public void | abort()Aborts this http request. Any active execution of this method should
return immediately. If the request has not started, it will abort after
the next execution. Aborting this request will cause all subsequent
executions with this request to fail.
| public void | setConnectionRequest(org.apache.http.conn.ClientConnectionRequest connRequest)Sets the {@link ClientConnectionRequest} callback that can be
used to abort a long-lived request for a connection.
If the request is already aborted, throws an {@link IOException}.
| public void | setReleaseTrigger(org.apache.http.conn.ConnectionReleaseTrigger releaseTrigger)Sets the {@link ConnectionReleaseTrigger} callback that can
be used to abort an active connection.
Typically, this will be the {@link ManagedClientConnection} itself.
If the request is already aborted, throws an {@link IOException}.
|
|