Android

org.apache.http.client.methods.AbortableHttpRequest

org.apache.http.client.methods.AbortableHttpRequest

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

Known Indirect Subclasses

Summary

Public Methods

          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.

Details

Public Methods

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(ClientConnectionRequest connRequest)

Sets the ClientConnectionRequest callback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws an IOException.

Throws

IOException

See Also

public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)

Sets the 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.

Throws

IOException
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56