com.atlassian.httpclient.apache.httpcomponents
Class DefaultHttpClient<C>

java.lang.Object
  extended by com.atlassian.httpclient.base.AbstractHttpClient
      extended by com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient<C>
All Implemented Interfaces:
HttpClient, org.springframework.beans.factory.DisposableBean

public final class DefaultHttpClient<C>
extends AbstractHttpClient
implements HttpClient, org.springframework.beans.factory.DisposableBean


Constructor Summary
DefaultHttpClient(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, ThreadLocalContextManager<C> threadLocalContextManager)
           
DefaultHttpClient(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties, ThreadLocalContextManager<C> threadLocalContextManager, HttpClientOptions options)
           
 
Method Summary
 void destroy()
           
 ResponsePromise execute(DefaultRequest request)
           
 void flushCacheByUriPattern(java.util.regex.Pattern urlPattern)
           
 
Methods inherited from class com.atlassian.httpclient.base.AbstractHttpClient
newRequest, newRequest, newRequest, newRequest, newRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.httpclient.api.HttpClient
newRequest, newRequest, newRequest, newRequest, newRequest
 

Constructor Detail

DefaultHttpClient

public DefaultHttpClient(com.atlassian.event.api.EventPublisher eventPublisher,
                         com.atlassian.sal.api.ApplicationProperties applicationProperties,
                         ThreadLocalContextManager<C> threadLocalContextManager)

DefaultHttpClient

public DefaultHttpClient(com.atlassian.event.api.EventPublisher eventPublisher,
                         com.atlassian.sal.api.ApplicationProperties applicationProperties,
                         ThreadLocalContextManager<C> threadLocalContextManager,
                         HttpClientOptions options)
Method Detail

execute

public final ResponsePromise execute(DefaultRequest request)
Specified by:
execute in class AbstractHttpClient

destroy

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

flushCacheByUriPattern

public void flushCacheByUriPattern(java.util.regex.Pattern urlPattern)
Specified by:
flushCacheByUriPattern in interface HttpClient


Copyright © 2012 Atlassian. All Rights Reserved.