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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.impl.client.CloseableHttpClient
getHttpClient
(ClientProperties clientProperties) Get aCloseableHttpClient
instance configured with the givenClientProperties
.newInstance
(ClientProperties clientProperties) Constructs a new Crowd Client instance from the client properties.newInstance
(String url, String applicationName, String applicationPassword) Construct a new Crowd Client instance.
-
Constructor Details
-
RestCrowdClientFactory
public RestCrowdClientFactory() -
RestCrowdClientFactory
-
-
Method Details
-
newInstance
Description copied from interface:CrowdClientFactory
Construct a new Crowd Client instance.- Specified by:
newInstance
in interfaceCrowdClientFactory
- 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
Description copied from interface:CrowdClientFactory
Constructs a new Crowd Client instance from the client properties.- Specified by:
newInstance
in interfaceCrowdClientFactory
- 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 aCloseableHttpClient
instance configured with the givenClientProperties
.- Parameters:
clientProperties
- the properties to use to configure the http client.- Returns:
- a
CloseableHttpClient
instance.
-