org.apache.jcs.auxiliary.remote.http.server
Class RemoteCacheServiceAdaptor

java.lang.Object
  extended by org.apache.jcs.auxiliary.remote.http.server.RemoteCacheServiceAdaptor

public class RemoteCacheServiceAdaptor
extends java.lang.Object

The Servlet deserializes the request object. The request object is passed to the processor. The processor then calls the service which does the work of talking to the cache.

This is essentially an adaptor on top of the service.


Constructor Summary
protected RemoteCacheServiceAdaptor()
          This is for testing without the factory.
  RemoteCacheServiceAdaptor(CompositeCacheManager cacheManager)
          Create a process with a cache manager.
 
Method Summary
 IRemoteCacheService getRemoteCacheService()
           
 RemoteCacheResponse processRequest(RemoteCacheRequest request)
          Processes the request.
 void setRemoteCacheService(IRemoteCacheService remoteHttpCacheService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCacheServiceAdaptor

protected RemoteCacheServiceAdaptor()
This is for testing without the factory.


RemoteCacheServiceAdaptor

public RemoteCacheServiceAdaptor(CompositeCacheManager cacheManager)
Create a process with a cache manager.

Parameters:
cacheManager -
Method Detail

processRequest

public RemoteCacheResponse processRequest(RemoteCacheRequest request)
Processes the request. It will call the appropriate method on the service

Parameters:
request -
Returns:
RemoteHttpCacheResponse, never null

setRemoteCacheService

public void setRemoteCacheService(IRemoteCacheService remoteHttpCacheService)
Parameters:
remoteHttpCacheService - the remoteHttpCacheService to set

getRemoteCacheService

public IRemoteCacheService getRemoteCacheService()
Returns:
the remoteHttpCacheService


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.