Interface HttpClientFactory

All Known Implementing Classes:
DefaultHttpClientFactory

public interface HttpClientFactory
Represents a CloseableHttpClient creation interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final List<HttpClientFactory>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.http.impl.client.CloseableHttpClient
    create(ClientIdentity clientIdentity)
    Don't close the HTTPClient when you've provided it to TokenAuthenticator or XsuaaTokenFlows instance.
    org.apache.http.impl.client.CloseableHttpClient
    createClient(ClientIdentity clientIdentity)
    Provides CloseableHttpClient based on ClientIdentity details.
  • Field Details

  • Method Details

    • createClient

      org.apache.http.impl.client.CloseableHttpClient createClient(ClientIdentity clientIdentity) throws HttpClientException
      Provides CloseableHttpClient based on ClientIdentity details. For ClientIdentity that is certificate based it will resolve https client using the provided ClientIdentity, if the ClientIdentity wasn't provided it will return default HttpClient.
      Parameters:
      clientIdentity - for X.509 certificate based communication ClientCertificate implementation of ClientIdentity interface should be provided
      Returns:
      HTTP or HTTPS client
      Throws:
      HttpClientException - in case HTTPS Client could not be setup
    • create

      static org.apache.http.impl.client.CloseableHttpClient create(ClientIdentity clientIdentity) throws HttpClientException
      Don't close the HTTPClient when you've provided it to TokenAuthenticator or XsuaaTokenFlows instance.
      Parameters:
      clientIdentity - to identify the identity provider client.
      Returns:
      HTTP or HTTPS client
      Throws:
      HttpClientException