|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echoservlet.CacheableServiceWrapper
public class CacheableServiceWrapper
A 'wrapper' service which provides caching capability to a an otherwise non-cacheable service.
| Constructor Summary | |
|---|---|
CacheableServiceWrapper(Id id,
Service service)
Creates a new CacheableServiceWrapper to wrap the
specified service. |
|
| Method Summary | |
|---|---|
Id |
getId()
Returns a unique identifier for this service. |
int |
getVersion()
Returns the version of the service to be retrieved. |
void |
service(Connection conn)
Services an HTTP request. |
void |
update()
Updates the cache id of the service, causing it to be reloaded when next requested. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheableServiceWrapper(Id id,
Service service)
CacheableServiceWrapper to wrap the
specified service.
service - The non-cacheable service to wrap.| Method Detail |
|---|
public int getVersion()
CacheableServicegetVersion() should return distinct values whenever the
service's content may have changed.
getVersion in interface CacheableServiceCacheableService.getVersion()public Id getId()
Service
getId in interface ServiceService.getId()public void update()
public void service(Connection conn)
throws java.io.IOException
Service
service in interface Serviceconn - A Connection object which wraps
HttpServletRequest and
HttpServletResponse objects and provides
access to the facilities of the Echo application container.
java.io.IOException - in the event of errors related to processing the
HTTP request or producing a response.Service.service(Connection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||