Class JdkClientHttpRequestFactory

java.lang.Object
org.springframework.http.client.JdkClientHttpRequestFactory
All Implemented Interfaces:
ClientHttpRequestFactory

public class JdkClientHttpRequestFactory extends Object implements ClientHttpRequestFactory
ClientHttpRequestFactory implementation based on the Java HttpClient.
Since:
6.1
Author:
Marten Deinum, Arjen Poutsma
  • Constructor Details

    • JdkClientHttpRequestFactory

      public JdkClientHttpRequestFactory()
      Create a new instance of the JdkClientHttpRequestFactory with a default HttpClient.
    • JdkClientHttpRequestFactory

      public JdkClientHttpRequestFactory(HttpClient httpClient)
      Create a new instance of the JdkClientHttpRequestFactory based on the given HttpClient.
      Parameters:
      httpClient - the client to base on
    • JdkClientHttpRequestFactory

      public JdkClientHttpRequestFactory(HttpClient httpClient, Executor executor)
      Create a new instance of the JdkClientHttpRequestFactory based on the given HttpClient and Executor.
      Parameters:
      httpClient - the client to base on
      executor - the executor to use for blocking write operations
  • Method Details