public class HttpComponentHttpRequestTaskAbortStrategy extends Object implements TaskAbortStrategy
These requests are used by (for instance) Spring's RestTemplate.
| Constructor and Description |
|---|
HttpComponentHttpRequestTaskAbortStrategy(org.apache.http.client.methods.HttpUriRequest request)
Construct a new instance with the
request we may have to abort. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
invoke()
Invoke the strategy in order to abort the task (that registered this abort strategy).
|
public HttpComponentHttpRequestTaskAbortStrategy(@NotNull org.apache.http.client.methods.HttpUriRequest request)
request we may have to abort.request - The request about to be executed (which we have to guard).public boolean invoke()
invoke in interface TaskAbortStrategy