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

    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
     
    void
    dispose(com.atlassian.httpclient.api.HttpClient httpClient)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface com.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 interface com.atlassian.httpclient.api.factory.HttpClientFactory
    • dispose

      public void dispose(@NonNull com.atlassian.httpclient.api.HttpClient httpClient) throws Exception
      Specified by:
      dispose in interface com.atlassian.httpclient.api.factory.HttpClientFactory
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception