Class Configuration

All Implemented Interfaces:
AdapterHttpClientConfig

public class Configuration extends AdapterConfig
Author:
Pedro Igor
  • Constructor Details

    • Configuration

      public Configuration()
    • Configuration

      public Configuration(String authServerUrl, String realm, String clientId, Map<String,Object> clientCredentials, org.apache.http.client.HttpClient httpClient)
      Creates a new instance.
      Parameters:
      authServerUrl - the server's URL. E.g.: http://{server}:{port}/auth.(not null)
      realm - the realm name (not null)
      clientId - the client id (not null)
      clientCredentials - a map with the client credentials (not null)
      httpClient - the HttpClient instance that should be used when sending requests to the server, or null if a default instance should be created
  • Method Details

    • getHttpClient

      public org.apache.http.client.HttpClient getHttpClient()
    • setHttpClient

      public void setHttpClient(org.apache.http.client.HttpClient httpClient)
    • setClientCredentialsProvider

      public void setClientCredentialsProvider(ClientCredentialsProvider clientCredentialsProvider)
    • getClientCredentialsProvider

      public ClientCredentialsProvider getClientCredentialsProvider()