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

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

public class ApacheHttpClientExecutor
extends Object
implements ClientExecutor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  org.apache.commons.httpclient.HttpClient httpClient
           
 
Constructor Summary
ApacheHttpClientExecutor()
           
ApacheHttpClientExecutor(org.apache.commons.httpclient.HttpClient httpClient)
           
 
Method Summary
 void commitHeaders(ClientRequest request, org.apache.commons.httpclient.HttpMethodBase httpMethod)
           
 ClientRequest createRequest(String uriTemplate)
           
 ClientRequest createRequest(UriBuilder uriBuilder)
           
 ClientResponse execute(ClientRequest request)
           
static CaseInsensitiveMap<String> extractHeaders(org.apache.commons.httpclient.HttpMethodBase baseMethod)
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 void loadHttpMethod(ClientRequest request, org.apache.commons.httpclient.HttpMethodBase 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.commons.httpclient.HttpClient httpClient
Constructor Detail

ApacheHttpClientExecutor

public ApacheHttpClientExecutor()

ApacheHttpClientExecutor

public ApacheHttpClientExecutor(org.apache.commons.httpclient.HttpClient httpClient)
Method Detail

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

extractHeaders

public static CaseInsensitiveMap<String> extractHeaders(org.apache.commons.httpclient.HttpMethodBase baseMethod)

createRequest

public ClientRequest createRequest(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 Exception
Specified by:
execute in interface ClientExecutor
Throws:
Exception

loadHttpMethod

public void loadHttpMethod(ClientRequest request,
                           org.apache.commons.httpclient.HttpMethodBase httpMethod)
                    throws Exception
Throws:
Exception

commitHeaders

public void commitHeaders(ClientRequest request,
                          org.apache.commons.httpclient.HttpMethodBase httpMethod)


Copyright © 2011. All Rights Reserved.