Class 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 the TaskAbortStrategy for the request.

    It extends the (default) HttpComponentsClientHttpRequestFactory and uses the postProcessHttpRequest method to register the TaskAbortStrategy.

    Since:
    2.0.0
    Author:
    Rutger Lubbers, Paul Klos
    • Constructor Detail

      • HawaiiHttpComponentsClientHttpRequestFactory

        public HawaiiHttpComponentsClientHttpRequestFactory()
    • 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 class org.springframework.http.client.HttpComponentsClientHttpRequestFactory