Package org.apache.http.client.methods
Interface AbortableHttpRequest
-
- All Known Implementing Classes:
AbstractExecutionAwareRequest,BaseDavRequest,HttpBind,HttpCheckin,HttpCheckout,HttpCopy,HttpDelete,HttpDelete,HttpEntityEnclosingRequestBase,HttpGet,HttpHead,HttpLabel,HttpLock,HttpMerge,HttpMkcol,HttpMkworkspace,HttpMove,HttpOptions,HttpOptions,HttpOrderpatch,HttpPatch,HttpPoll,HttpPost,HttpPropfind,HttpProppatch,HttpPut,HttpRebind,HttpReport,HttpRequestBase,HttpSearch,HttpSubscribe,HttpTrace,HttpUnbind,HttpUnlock,HttpUnsubscribe,HttpUpdate,HttpVersionControl
@Deprecated public interface AbortableHttpRequestDeprecated.(4.3) useHttpExecutionAwareInterface representing an HTTP request that can be aborted by shutting down the underlying HTTP connection.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidabort()Deprecated.Aborts this http request.voidsetConnectionRequest(ClientConnectionRequest connRequest)Deprecated.Sets theClientConnectionRequestcallback that can be used to abort a long-lived request for a connection.voidsetReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)Deprecated.Sets theConnectionReleaseTriggercallback that can be used to abort an active connection.
-
-
-
Method Detail
-
setConnectionRequest
void setConnectionRequest(ClientConnectionRequest connRequest) throws java.io.IOException
Deprecated.Sets theClientConnectionRequestcallback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws anIOException.- Throws:
java.io.IOException- See Also:
ClientConnectionManager
-
setReleaseTrigger
void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger) throws java.io.IOException
Deprecated.Sets theConnectionReleaseTriggercallback that can be used to abort an active connection. Typically, this will be theManagedClientConnectionitself. If the request is already aborted, throws anIOException.- Throws:
java.io.IOException
-
abort
void abort()
Deprecated.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:
HttpClient.execute(HttpUriRequest),HttpClient.execute(org.apache.http.HttpHost, org.apache.http.HttpRequest),HttpClient.execute(HttpUriRequest, org.apache.http.protocol.HttpContext),HttpClient.execute(org.apache.http.HttpHost, org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)
-
-