com.atlassian.httpclient.apache.httpcomponents
Class DefaultHttpClientFactory

java.lang.Object
  extended by com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory
All Implemented Interfaces:
HttpClientFactory, org.springframework.beans.factory.DisposableBean

public final class DefaultHttpClientFactory
extends Object
implements HttpClientFactory, org.springframework.beans.factory.DisposableBean


Constructor Summary
DefaultHttpClientFactory(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
           
 
Method Summary
 HttpClient create(HttpClientOptions options)
           
 HttpClient create(HttpClientOptions options, com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
           
 void destroy()
           
 void dispose(HttpClient httpClient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 HttpClient create(HttpClientOptions options)
Specified by:
create in interface HttpClientFactory

create

public HttpClient create(HttpClientOptions options,
                         com.atlassian.sal.api.executor.ThreadLocalContextManager threadLocalContextManager)
Specified by:
create in interface HttpClientFactory

dispose

public void dispose(@NotNull
                    HttpClient httpClient)
             throws Exception
Specified by:
dispose in interface HttpClientFactory
Throws:
Exception

destroy

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


Copyright © 2012–2015 Atlassian. All rights reserved.