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)
CrowdClientFactory
newInstance
in interface CrowdClientFactory
url
- 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)
CrowdClientFactory
newInstance
in interface CrowdClientFactory
clientProperties
- 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 © 2021 Atlassian. All rights reserved.