Class RestCrowdClientFactory

java.lang.Object
com.atlassian.crowd.integration.rest.service.factory.RestCrowdClientFactory
All Implemented Interfaces:
CrowdClientFactory

public class RestCrowdClientFactory extends Object implements CrowdClientFactory
Factory class for creating a new instance of CrowdClient using REST.
  • Constructor Details

    • RestCrowdClientFactory

      public RestCrowdClientFactory()
    • RestCrowdClientFactory

      public RestCrowdClientFactory(HttpClientProvider httpClientProvider)
  • Method Details

    • newInstance

      public CrowdClient newInstance(String url, String applicationName, String applicationPassword)
      Description copied from interface: CrowdClientFactory
      Construct a new Crowd Client instance.
      Specified by:
      newInstance in interface CrowdClientFactory
      Parameters:
      url - URL of the remote Crowd server.
      applicationName - The application name of the connecting application.
      applicationPassword - The password of the connecting application.
      Returns:
      new instance of CrowdClient
    • newInstance

      public CrowdClient newInstance(ClientProperties clientProperties)
      Description copied from interface: CrowdClientFactory
      Constructs a new Crowd Client instance from the client properties.
      Specified by:
      newInstance in interface CrowdClientFactory
      Parameters:
      clientProperties - all the properties needed to initialise the client.
      Returns:
      new instance of CrowdClient
    • getHttpClient

      protected org.apache.http.impl.client.CloseableHttpClient getHttpClient(ClientProperties clientProperties)
      Get a CloseableHttpClient instance configured with the given ClientProperties.
      Parameters:
      clientProperties - the properties to use to configure the http client.
      Returns:
      a CloseableHttpClient instance.