public abstract class RestExecutor extends Object implements Closeable
Constructor and Description |
---|
RestExecutor(String baseUrl,
org.apache.http.HttpHost httpHost,
org.apache.http.client.CredentialsProvider credsProvider,
org.apache.http.impl.client.CloseableHttpClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected static String |
createBaseUrl(String url)
Returns the "root" WebResource.
|
protected static org.apache.http.client.CredentialsProvider |
createCredentialsProvider(ClientProperties clientProperties) |
protected static org.apache.http.HttpHost |
createHttpHost(ClientProperties clientProperties) |
protected com.atlassian.crowd.integration.rest.service.RestExecutor.MethodExecutor |
createMethodExecutor(org.apache.http.client.methods.HttpUriRequest request) |
protected com.atlassian.crowd.integration.rest.service.RestExecutor.MethodExecutor |
createMethodExecutor(org.apache.http.client.methods.HttpUriRequest request,
Set<Integer> statusCodesWithoutErrorEntity) |
public RestExecutor(String baseUrl, org.apache.http.HttpHost httpHost, org.apache.http.client.CredentialsProvider credsProvider, org.apache.http.impl.client.CloseableHttpClient client)
protected static org.apache.http.client.CredentialsProvider createCredentialsProvider(ClientProperties clientProperties)
protected static org.apache.http.HttpHost createHttpHost(ClientProperties clientProperties)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
protected static String createBaseUrl(String url)
url
- URL to derive the base URL fromprotected com.atlassian.crowd.integration.rest.service.RestExecutor.MethodExecutor createMethodExecutor(org.apache.http.client.methods.HttpUriRequest request, Set<Integer> statusCodesWithoutErrorEntity)
protected final com.atlassian.crowd.integration.rest.service.RestExecutor.MethodExecutor createMethodExecutor(org.apache.http.client.methods.HttpUriRequest request)
Copyright © 2021 Atlassian. All rights reserved.