Class RestCrowdClientFactory
java.lang.Object
com.atlassian.crowd.integration.rest.service.factory.RestCrowdClientFactory
- All Implemented Interfaces:
CrowdClientFactory
Factory class for creating a new instance of CrowdClient using REST.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.impl.client.CloseableHttpClientgetHttpClient(ClientProperties clientProperties) Get aCloseableHttpClientinstance configured with the givenClientProperties.newInstance(ClientProperties clientProperties) newInstance(String url, String applicationName, String applicationPassword)
-
Constructor Details
-
RestCrowdClientFactory
public RestCrowdClientFactory() -
RestCrowdClientFactory
-
-
Method Details
-
newInstance
- Specified by:
newInstancein interfaceCrowdClientFactory
-
newInstance
- Specified by:
newInstancein interfaceCrowdClientFactory
-
getHttpClient
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient(ClientProperties clientProperties) Get aCloseableHttpClientinstance configured with the givenClientProperties.- Parameters:
clientProperties- the properties to use to configure the http client.- Returns:
- a
CloseableHttpClientinstance.
-