Build 1.0_r1

org.apache.http.client.methods
Interface AbortableHttpRequest

All Known Implementing Classes:
HttpDelete, HttpEntityEnclosingRequestBase, HttpGet, HttpHead, HttpOptions, HttpPost, HttpPut, HttpRequestBase, HttpTrace

public interface AbortableHttpRequest

Interface representing an HTTP request that can be aborted by shutting down the underlying HTTP connection.


Method Summary
 void abort()
          Aborts this http request.
 void setConnectionRequest(ClientConnectionRequest clientconnectionrequest)
           
 void setReleaseTrigger(ConnectionReleaseTrigger connectionreleasetrigger)
           
 

Method Detail

setConnectionRequest

void setConnectionRequest(ClientConnectionRequest clientconnectionrequest)
                          throws IOException
Throws:
IOException

setReleaseTrigger

void setReleaseTrigger(ConnectionReleaseTrigger connectionreleasetrigger)
                       throws IOException
Throws:
IOException

abort

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.

See Also:
execute(HttpUriRequest), execute(org.apache.http.HttpHost, org.apache.http.HttpRequest), execute(HttpUriRequest, org.apache.http.protocol.HttpContext), execute(org.apache.http.HttpHost, org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)

Build 1.0_r1

Please submit a feedback, bug or feature