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.HttpClientcreate(com.atlassian.httpclient.api.factory.HttpClientOptions options) com.atlassian.httpclient.api.HttpClientcreate(com.atlassian.httpclient.api.factory.HttpClientOptions options, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager) voiddestroy()voiddispose(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:
createin 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:
createin interfacecom.atlassian.httpclient.api.factory.HttpClientFactory
-
dispose
- Specified by:
disposein interfacecom.atlassian.httpclient.api.factory.HttpClientFactory- Throws:
Exception
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-