|
||||||||||
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 String |
addParameters(RemoteCacheRequest remoteCacheRequest,
String baseUrl)
|
RemoteCacheResponse |
dispatchRequest(RemoteCacheRequest 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 RemoteCacheResponse dispatchRequest(RemoteCacheRequest remoteCacheRequest) throws IOException
TODO consider taking in a URL instead of using the one in the configuration.
dispatchRequest
in interface IRemoteCacheDispatcher
remoteCacheRequest
-
IOException
protected byte[] processRequest(byte[] requestAsByteArray, String url) throws IOException, org.apache.commons.httpclient.HttpException
requestAsByteArray
- url
-
IOException
org.apache.commons.httpclient.HttpException
protected String addParameters(RemoteCacheRequest remoteCacheRequest, String baseUrl)
remoteCacheRequest
- baseUrl
-
public org.apache.commons.httpclient.HttpState preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post) throws IOException
preProcessWebserviceCall
in class AbstractHttpClient
post
- http method
IOException
public void postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post, org.apache.commons.httpclient.HttpState httpState) throws IOException
postProcessWebserviceCall
in class AbstractHttpClient
post
- http methodhttpState
- state
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |