Class DefaultHttpClientFactory<C>
java.lang.Object
fr.enedis.chutney.jira.infra.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory<C>
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
public final class DefaultHttpClientFactory<C>
extends Object
implements org.springframework.beans.factory.DisposableBean
Changes : - Use local HttpClientOptions class
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpClientFactory(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.httpclient.api.HttpClientcreate(HttpClientOptions options) <C> com.atlassian.httpclient.api.HttpClientcreate(HttpClientOptions options, com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager) voiddestroy()voiddispose(com.atlassian.httpclient.api.HttpClient httpClient)
-
Constructor Details
-
DefaultHttpClientFactory
public DefaultHttpClientFactory(@Nonnull com.atlassian.event.api.EventPublisher eventPublisher, @Nonnull com.atlassian.sal.api.ApplicationProperties applicationProperties, @Nonnull com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager)
-
-
Method Details
-
create
-
create
@Nonnull public <C> com.atlassian.httpclient.api.HttpClient create(@Nonnull HttpClientOptions options, @Nonnull com.atlassian.sal.api.executor.ThreadLocalContextManager<C> threadLocalContextManager) -
dispose
- Throws:
Exception
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-