|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.http.client.AbstractHttpClient
org.apache.jcs.auxiliary.remote.http.client.RemoteHttpCacheDispatcher
public class RemoteHttpCacheDispatcher
Calls the service.
| Constructor Summary | |
|---|---|
RemoteHttpCacheDispatcher(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
|
|
| Method Summary | ||
|---|---|---|
protected
|
addParameters(RemoteCacheRequest<K,V> remoteCacheRequest,
String baseUrl)
|
|
|
dispatchRequest(RemoteCacheRequest<K,V> remoteCacheRequest)
All requests will go through this method. |
|
void |
postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post,
org.apache.commons.httpclient.HttpState httpState)
Called after the executeMethod on the client. |
|
org.apache.commons.httpclient.HttpState |
preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
Called before the executeMethod on the client. |
|
protected byte[] |
processRequest(byte[] requestAsByteArray,
String url)
|
|
| Methods inherited from class org.apache.jcs.auxiliary.remote.http.client.AbstractHttpClient |
|---|
configureClient, doWebserviceCall, getConnectionManager, getRemoteHttpCacheAttributes, setConnectionManager, setRemoteHttpCacheAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteHttpCacheDispatcher(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes - | Method Detail |
|---|
public <K extends Serializable,V extends Serializable,T> RemoteCacheResponse<T> dispatchRequest(RemoteCacheRequest<K,V> remoteCacheRequest)
throws IOException
TODO consider taking in a URL instead of using the one in the configuration.
dispatchRequest in interface IRemoteCacheDispatcherremoteCacheRequest -
IOException
protected byte[] processRequest(byte[] requestAsByteArray,
String url)
throws IOException,
org.apache.commons.httpclient.HttpException
requestAsByteArray - url -
IOException
org.apache.commons.httpclient.HttpException
protected <K extends Serializable,V extends Serializable> String addParameters(RemoteCacheRequest<K,V> remoteCacheRequest,
String baseUrl)
remoteCacheRequest - baseUrl -
public org.apache.commons.httpclient.HttpState preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
throws IOException
preProcessWebserviceCall in class AbstractHttpClientpost - http method
IOException
public void postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post,
org.apache.commons.httpclient.HttpState httpState)
throws IOException
postProcessWebserviceCall in class AbstractHttpClientpost - http methodhttpState - state
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||