org.apache.cocoon.cache
Class CocoonCache
java.lang.Object
|
+--org.apache.cocoon.cache.CocoonCache
- public class CocoonCache
- extends java.lang.Object
- implements Cache, Status
This is the dynamic cocoon cache implementation which is
able to cache all instances of generated documents, both
statically and dynamically generated.
- Version:
- $Revision: 1.3 $Date: 1999/10/26 16:20:36 $
- Author:
- Stefano Mazzocchi
Method Summary |
Page |
getPage(javax.servlet.http.HttpServletRequest request)
This method retrieves a page from the store
and checks if its changeable points have changed.
|
java.lang.String |
getStatus()
Returns information about the status of the implementing class.
|
void |
init(Director director)
Initialize the actor by indicating their director. |
void |
setPage(Page page,
javax.servlet.http.HttpServletRequest request)
This method inserts the page in cache and associates it
with the given request. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
store
private Store store
CocoonCache
public CocoonCache()
init
public void init(Director director)
- Description copied from interface: Actor
- Initialize the actor by indicating their director.
getPage
public Page getPage(javax.servlet.http.HttpServletRequest request)
- This method retrieves a page from the store
and checks if its changeable points have changed.
Only if all the changeable points haven't changed
the page is returned, otherwise null is returned.
- Specified by:
- getPage in interface Cache
setPage
public void setPage(Page page,
javax.servlet.http.HttpServletRequest request)
- This method inserts the page in cache and associates it
with the given request.
- Specified by:
- setPage in interface Cache
getStatus
public java.lang.String getStatus()
- Description copied from interface: Status
- Returns information about the status of the implementing class.
Note: this is use instead of the usual
toString()
method because some of these methods are declared final in some
classes in JDK 1.1.
- Specified by:
- getStatus in interface Status
Copyright 1999 Java Apache Project. All Rights Reserved.