com.atlassian.httpclient.api.factory
Interface HttpClientFactory


public interface HttpClientFactory

Creates configured instances of HttpClient


Method Summary
 HttpClient create(HttpClientOptions options)
          Creates a new instance of HttpClient
 HttpClient create(HttpClientOptions options, ThreadLocalContextManager threadLocalContextManager)
          Creates a new instance of HttpClient
 

Method Detail

create

HttpClient create(HttpClientOptions options)
Creates a new instance of HttpClient

Parameters:
options - The http client options. Cannot be null.
Returns:
The new instance. Will never be null
See Also:
create(HttpClientOptions, ThreadLocalContextManager)

create

HttpClient create(HttpClientOptions options,
                  ThreadLocalContextManager threadLocalContextManager)
Creates a new instance of HttpClient

Parameters:
options - The http client options. Cannot be null.
threadLocalContextManager - the manager for thread local variables. Cannot be null.
Returns:
The new instance. Will never be null
See Also:
create(HttpClientOptions)


Copyright © 2012 Atlassian. All Rights Reserved.