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 AbortableHttpRequest
Deprecated.(4.3) useHttpExecutionAware
Interface 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 void
abort()
Deprecated.Aborts this http request.void
setConnectionRequest(ClientConnectionRequest connRequest)
Deprecated.Sets theClientConnectionRequest
callback that can be used to abort a long-lived request for a connection.void
setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Deprecated.Sets theConnectionReleaseTrigger
callback that can be used to abort an active connection.
-
-
-
Method Detail
-
setConnectionRequest
void setConnectionRequest(ClientConnectionRequest connRequest) throws java.io.IOException
Deprecated.Sets theClientConnectionRequest
callback 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 theConnectionReleaseTrigger
callback that can be used to abort an active connection. Typically, this will be theManagedClientConnection
itself. 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)
-
-