public class RestCrowdClientFactory extends Object implements CrowdClientFactory
| Constructor and Description |
|---|
RestCrowdClientFactory() |
RestCrowdClientFactory(HttpClientProvider httpClientProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.impl.client.CloseableHttpClient |
getHttpClient(ClientProperties clientProperties)
Get a
CloseableHttpClient instance configured with the given ClientProperties. |
CrowdClient |
newInstance(ClientProperties clientProperties)
Constructs a new Crowd Client instance from the client properties.
|
CrowdClient |
newInstance(String url,
String applicationName,
String applicationPassword)
Construct a new Crowd Client instance.
|
public RestCrowdClientFactory()
public RestCrowdClientFactory(HttpClientProvider httpClientProvider)
public CrowdClient newInstance(String url, String applicationName, String applicationPassword)
CrowdClientFactorynewInstance in interface CrowdClientFactoryurl - URL of the remote Crowd server.applicationName - The application name of the connecting application.applicationPassword - The password of the connecting application.public CrowdClient newInstance(ClientProperties clientProperties)
CrowdClientFactorynewInstance in interface CrowdClientFactoryclientProperties - all the properties needed to initialise the client.protected org.apache.http.impl.client.CloseableHttpClient getHttpClient(ClientProperties clientProperties)
CloseableHttpClient instance configured with the given ClientProperties.clientProperties - the properties to use to configure the http client.CloseableHttpClient instance.Copyright © 2018 Atlassian. All rights reserved.