Class HttpClientService

java.lang.Object
org.qubership.atp.itf.lite.backend.service.rest.HttpClientService

@Service @EnableConfigurationProperties(HttpClientProperties.class) public class HttpClientService extends Object
  • Constructor Details

    • HttpClientService

      public HttpClientService()
  • Method Details

    • getHttpClient

      public org.apache.http.impl.client.CloseableHttpClient getHttpClient(UUID projectId)
      Configuration for http client.
      Returns:
      http client
    • getHttpClient

      public org.apache.http.impl.client.CloseableHttpClient getHttpClient(UUID projectId, RequestRuntimeOptions runtimeOptions)
      Configuration for http client.
      Returns:
      http client
    • getHttpClient

      public org.apache.http.impl.client.CloseableHttpClient getHttpClient(UUID projectId, RequestRuntimeOptions runtimeOptions, String requestUrl, org.apache.http.client.CookieStore cookieStore)
      Configuration for http client.
      Returns:
      http client
    • idleConnectionMonitor

      @Bean public Runnable idleConnectionMonitor(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager)
      Monitor to close expired connections.
      Parameters:
      connectionManager - connection manager
      Returns:
      runnable