|
||||||||||
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 java.lang.String |
addParameters(RemoteCacheRequest remoteCacheRequest,
java.lang.String baseUrl)
|
RemoteCacheResponse |
dispatchRequest(RemoteCacheRequest remoteCacheRequest)
All requests will go through this method. |
protected void |
doWebserviceCall(org.apache.commons.httpclient.HttpMethod post)
Extracted method that can be overwritten to do additional things to the post before the call is made. |
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,
java.lang.String url)
|
Methods inherited from class org.apache.jcs.auxiliary.remote.http.client.AbstractHttpClient |
---|
configureClient, getConnectionManager, getHttpClient, getRemoteHttpCacheAttributes, setConnectionManager, setHttpClient, 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 java.io.IOException
TODO consider taking in a URL instead of using the one in the configuration.
dispatchRequest
in interface IRemoteCacheDispatcher
remoteCacheRequest
-
java.io.IOException
protected byte[] processRequest(byte[] requestAsByteArray, java.lang.String url) throws java.io.IOException, org.apache.commons.httpclient.HttpException
requestAsByteArray
- url
-
java.io.IOException
org.apache.commons.httpclient.HttpException
protected java.lang.String addParameters(RemoteCacheRequest remoteCacheRequest, java.lang.String baseUrl)
remoteCacheRequest
- baseUrl
-
protected final void doWebserviceCall(org.apache.commons.httpclient.HttpMethod post) throws java.io.IOException
post
- the post that is about to get executed.
java.io.IOException
- on i/o errorpublic org.apache.commons.httpclient.HttpState preProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post) throws java.io.IOException
post
- http method
java.io.IOException
public void postProcessWebserviceCall(org.apache.commons.httpclient.HttpMethod post, org.apache.commons.httpclient.HttpState httpState) throws java.io.IOException
post
- http methodhttpState
- state
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |