public interface HttpClientFactory
HttpClient| Modifier and Type | Method and Description |
|---|---|
HttpClient |
create(HttpClientOptions options)
Creates a new instance of
HttpClient |
HttpClient |
create(HttpClientOptions options,
com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
Creates a new instance of
HttpClient |
void |
dispose(HttpClient httpClient)
Disposes the given instance of
HttpClient |
@NotNull HttpClient create(@NotNull HttpClientOptions options)
HttpClientoptions - The http client options. Cannot be null.create(HttpClientOptions, ThreadLocalContextManager)@NotNull HttpClient create(@NotNull HttpClientOptions options, @NotNull com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
HttpClientoptions - The http client options. Cannot be null.threadLocalContextManager - the manager for thread local variables. Cannot be null.create(HttpClientOptions)void dispose(@NotNull
HttpClient httpClient)
throws java.lang.Exception
HttpClienthttpClient - The httpClient to dispose. Cannot be null.java.lang.Exception - in case of shutdown errors.Copyright © 2012-2013 Atlassian. All Rights Reserved.