Class TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory

java.lang.Object
org.springframework.http.client.HttpComponentsClientHttpRequestFactory
org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.http.client.ClientHttpRequestFactory
Enclosing class:
TestRestTemplate

protected static class TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory extends org.springframework.http.client.HttpComponentsClientHttpRequestFactory
HttpComponentsClientHttpRequestFactory to apply customizations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomHttpComponentsClientHttpRequestFactory(TestRestTemplate.HttpClientOption[] httpClientOptions, org.springframework.boot.web.client.ClientHttpRequestFactorySettings settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.hc.core5.http.protocol.HttpContext
    createHttpContext(org.springframework.http.HttpMethod httpMethod, URI uri)
     
    protected org.apache.hc.client5.http.config.RequestConfig
     

    Methods inherited from class org.springframework.http.client.HttpComponentsClientHttpRequestFactory

    createHttpUriRequest, createRequest, createRequestConfig, destroy, getHttpClient, mergeRequestConfig, postProcessHttpRequest, setBufferRequestBody, setConnectionRequestTimeout, setConnectTimeout, setHttpClient, setHttpContextFactory, setReadTimeout

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomHttpComponentsClientHttpRequestFactory

      public CustomHttpComponentsClientHttpRequestFactory(TestRestTemplate.HttpClientOption[] httpClientOptions, org.springframework.boot.web.client.ClientHttpRequestFactorySettings settings)
  • Method Details

    • createHttpContext

      protected org.apache.hc.core5.http.protocol.HttpContext createHttpContext(org.springframework.http.HttpMethod httpMethod, URI uri)
      Overrides:
      createHttpContext in class org.springframework.http.client.HttpComponentsClientHttpRequestFactory
    • createRequestConfig

      protected org.apache.hc.client5.http.config.RequestConfig createRequestConfig()