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.
Interface representing an HTTP request that can be aborted by shutting
down the underlying HTTP connection.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
setConnectionRequest
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:
IOException
- See Also:
-
setReleaseTrigger
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:
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:
-
HttpExecutionAware