Package org.hawaiiframework.async.http
Class HawaiiHttpComponentsClientHttpRequestFactory
- java.lang.Object
-
- org.springframework.http.client.HttpComponentsClientHttpRequestFactory
-
- org.hawaiiframework.async.http.HawaiiHttpComponentsClientHttpRequestFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.http.client.ClientHttpRequestFactory
public class HawaiiHttpComponentsClientHttpRequestFactory extends org.springframework.http.client.HttpComponentsClientHttpRequestFactory
An HTTP request factory that sets theTaskAbortStrategy
for the request.It extends the (default)
HttpComponentsClientHttpRequestFactory
and uses the postProcessHttpRequest method to register theTaskAbortStrategy
.- Since:
- 2.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Constructor Summary
Constructors Constructor Description HawaiiHttpComponentsClientHttpRequestFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
postProcessHttpRequest(@NotNull org.apache.http.client.methods.HttpUriRequest request)
-
Methods inherited from class org.springframework.http.client.HttpComponentsClientHttpRequestFactory
createHttpContext, createHttpUriRequest, createRequest, createRequestConfig, destroy, getHttpClient, mergeRequestConfig, setBufferRequestBody, setConnectionRequestTimeout, setConnectTimeout, setHttpClient, setHttpContextFactory, setReadTimeout
-
-
-
-
Method Detail
-
postProcessHttpRequest
protected void postProcessHttpRequest(@NotNull @NotNull org.apache.http.client.methods.HttpUriRequest request)
Register the abort strategy for this request.
- Overrides:
postProcessHttpRequest
in classorg.springframework.http.client.HttpComponentsClientHttpRequestFactory
-
-