public interface HttpClientFactory
HttpClient| Modifier and Type | Method and Description |
|---|---|
HttpClient |
create(HttpClientOptions options)
Creates a new instance of
HttpClient |
<C> HttpClient |
create(HttpClientOptions options,
com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager)
Creates a new instance of
HttpClient |
void |
dispose(HttpClient httpClient)
Disposes the given instance of
HttpClient |
@Nonnull HttpClient create(@Nonnull HttpClientOptions options)
HttpClientoptions - The http client options. Cannot be null.create(HttpClientOptions, ThreadLocalContextManager)@Nonnull <C> HttpClient create(@Nonnull HttpClientOptions options, @Nonnull com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager)
HttpClientC - the context typeoptions - The http client options. Cannot be null.threadLocalContextManager - the manager for thread local variables. Cannot be null.create(HttpClientOptions)void dispose(@Nonnull HttpClient httpClient) throws Exception
HttpClienthttpClient - The httpClient to dispose. Cannot be null.Exception - in case of shutdown errors.Copyright © 2012–2018 Atlassian. All rights reserved.