org.fishwife.jrugged.httpclient
Class ServiceWrappedHttpClientDecorator

java.lang.Object
  extended by org.fishwife.jrugged.httpclient.AbstractHttpClientDecorator
      extended by org.fishwife.jrugged.httpclient.ServiceWrappedHttpClientDecorator
All Implemented Interfaces:
org.apache.http.client.HttpClient

public class ServiceWrappedHttpClientDecorator
extends AbstractHttpClientDecorator

Decorator that runs HttpClient request executions through a ServiceWrapper.


Field Summary
 
Fields inherited from class org.fishwife.jrugged.httpclient.AbstractHttpClientDecorator
backend
 
Constructor Summary
ServiceWrappedHttpClientDecorator(org.apache.http.client.HttpClient backend, ServiceWrapper wrapper)
           
 
Method Summary
 org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, org.apache.http.HttpRequest req, org.apache.http.protocol.HttpContext ctx)
           
 
Methods inherited from class org.fishwife.jrugged.httpclient.AbstractHttpClientDecorator
execute, execute, execute, execute, execute, execute, execute, getConnectionManager, getHttpHost, getParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceWrappedHttpClientDecorator

public ServiceWrappedHttpClientDecorator(org.apache.http.client.HttpClient backend,
                                         ServiceWrapper wrapper)
Method Detail

execute

public org.apache.http.HttpResponse execute(org.apache.http.HttpHost host,
                                            org.apache.http.HttpRequest req,
                                            org.apache.http.protocol.HttpContext ctx)
                                     throws IOException,
                                            org.apache.http.client.ClientProtocolException
Specified by:
execute in interface org.apache.http.client.HttpClient
Specified by:
execute in class AbstractHttpClientDecorator
Throws:
IOException
org.apache.http.client.ClientProtocolException


Copyright © 2013. All Rights Reserved.