Class DefaultHttpClientFactory
- java.lang.Object
-
- com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory
-
- All Implemented Interfaces:
com.atlassian.httpclient.api.factory.HttpClientFactory
,org.springframework.beans.factory.DisposableBean
public final class DefaultHttpClientFactory extends Object implements com.atlassian.httpclient.api.factory.HttpClientFactory, org.springframework.beans.factory.DisposableBean
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpClientFactory(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.httpclient.api.HttpClient
create(com.atlassian.httpclient.api.factory.HttpClientOptions options)
com.atlassian.httpclient.api.HttpClient
create(com.atlassian.httpclient.api.factory.HttpClientOptions options, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
void
destroy()
void
dispose(com.atlassian.httpclient.api.HttpClient httpClient)
-
-
-
Method Detail
-
create
public com.atlassian.httpclient.api.HttpClient create(com.atlassian.httpclient.api.factory.HttpClientOptions options)
- Specified by:
create
in interfacecom.atlassian.httpclient.api.factory.HttpClientFactory
-
create
public com.atlassian.httpclient.api.HttpClient create(com.atlassian.httpclient.api.factory.HttpClientOptions options, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
- Specified by:
create
in interfacecom.atlassian.httpclient.api.factory.HttpClientFactory
-
dispose
public void dispose(@NonNull com.atlassian.httpclient.api.HttpClient httpClient) throws Exception
- Specified by:
dispose
in interfacecom.atlassian.httpclient.api.factory.HttpClientFactory
- Throws:
Exception
-
-