org.fishwife.jrugged.httpclient
Class AbstractHttpClientDecorator
java.lang.Object
org.fishwife.jrugged.httpclient.AbstractHttpClientDecorator
- All Implemented Interfaces:
- org.apache.http.client.HttpClient
- Direct Known Subclasses:
- FailureExposingHttpClient, FailureHandlingHttpClient, PerHostServiceWrappedHttpClient, ServiceWrappedHttpClient, ServiceWrappedHttpClientDecorator
public abstract class AbstractHttpClientDecorator
- extends Object
- implements org.apache.http.client.HttpClient
General decorator class for an HttpClient; implementors for
decorators need only implement a single abstract method.
|
Field Summary |
protected org.apache.http.client.HttpClient |
backend
|
|
Method Summary |
org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req)
|
abstract org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req,
org.apache.http.protocol.HttpContext ctx)
|
|
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh)
|
|
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh,
org.apache.http.protocol.HttpContext ctx)
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest req)
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.protocol.HttpContext ctx)
|
|
execute(org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh)
|
|
execute(org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh,
org.apache.http.protocol.HttpContext ctx)
|
org.apache.http.conn.ClientConnectionManager |
getConnectionManager()
|
protected org.apache.http.HttpHost |
getHttpHost(org.apache.http.client.methods.HttpUriRequest req)
|
org.apache.http.params.HttpParams |
getParams()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
backend
protected org.apache.http.client.HttpClient backend
AbstractHttpClientDecorator
public AbstractHttpClientDecorator(org.apache.http.client.HttpClient backend)
execute
public abstract 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
- Throws:
IOException
org.apache.http.client.ClientProtocolException
getHttpHost
protected org.apache.http.HttpHost getHttpHost(org.apache.http.client.methods.HttpUriRequest req)
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest req)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.protocol.HttpContext ctx)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
execute
public org.apache.http.HttpResponse execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
execute
public <T> T execute(org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
execute
public <T> T execute(org.apache.http.client.methods.HttpUriRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh,
org.apache.http.protocol.HttpContext ctx)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
execute
public <T> T execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
execute
public <T> T execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest req,
org.apache.http.client.ResponseHandler<? extends T> rh,
org.apache.http.protocol.HttpContext ctx)
throws IOException,
org.apache.http.client.ClientProtocolException
- Specified by:
execute in interface org.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
getConnectionManager
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
- Specified by:
getConnectionManager in interface org.apache.http.client.HttpClient
getParams
public org.apache.http.params.HttpParams getParams()
- Specified by:
getParams in interface org.apache.http.client.HttpClient
Copyright © 2013. All Rights Reserved.