org.jboss.resteasy.client.core.executors
Class ApacheHttpClient4Executor

java.lang.Object
  extended by org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor
All Implemented Interfaces:
ClientExecutor

public class ApacheHttpClient4Executor
extends java.lang.Object
implements ClientExecutor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  org.apache.http.client.HttpClient httpClient
           
 
Constructor Summary
ApacheHttpClient4Executor()
           
ApacheHttpClient4Executor(org.apache.http.client.HttpClient httpClient)
           
 
Method Summary
 ClientRequest createRequest(java.lang.String uriTemplate)
           
 ClientRequest createRequest(UriBuilder uriBuilder)
           
 ClientResponse execute(ClientRequest request)
           
static CaseInsensitiveMap<java.lang.String> extractHeaders(org.apache.http.HttpResponse response)
           
 org.apache.http.client.HttpClient getHttpClient()
           
 void loadHttpMethod(ClientRequest request, org.apache.http.client.methods.HttpRequestBase httpMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpClient

protected org.apache.http.client.HttpClient httpClient
Constructor Detail

ApacheHttpClient4Executor

public ApacheHttpClient4Executor()

ApacheHttpClient4Executor

public ApacheHttpClient4Executor(org.apache.http.client.HttpClient httpClient)
Method Detail

getHttpClient

public org.apache.http.client.HttpClient getHttpClient()

extractHeaders

public static CaseInsensitiveMap<java.lang.String> extractHeaders(org.apache.http.HttpResponse response)

createRequest

public ClientRequest createRequest(java.lang.String uriTemplate)
Specified by:
createRequest in interface ClientExecutor

createRequest

public ClientRequest createRequest(UriBuilder uriBuilder)
Specified by:
createRequest in interface ClientExecutor

execute

public ClientResponse execute(ClientRequest request)
                       throws java.lang.Exception
Specified by:
execute in interface ClientExecutor
Throws:
java.lang.Exception

loadHttpMethod

public void loadHttpMethod(ClientRequest request,
                           org.apache.http.client.methods.HttpRequestBase httpMethod)
                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.