Class 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)  
    • Constructor Detail

      • DefaultHttpClientFactory

        public DefaultHttpClientFactory​(com.atlassian.event.api.EventPublisher eventPublisher,
                                        com.atlassian.sal.api.ApplicationProperties applicationProperties,
                                        com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
    • Method Detail

      • 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