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
ConstructorsConstructorDescriptionDefaultHttpClientFactory
(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager) -
Method Summary
Modifier and TypeMethodDescriptioncom.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)
-
Constructor Details
-
DefaultHttpClientFactory
public DefaultHttpClientFactory(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
-
-
Method Details
-
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
- Specified by:
dispose
in interfacecom.atlassian.httpclient.api.factory.HttpClientFactory
- Throws:
Exception
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-