|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The include cache manager is a component that can manage included content. It can eiter load them in parallel or pre-emptive and cache the content for a given period of time.
| Field Summary | |
static String |
ROLE
Avalon role |
| Method Summary | |
IncludeCacheManagerSession |
getSession(Parameters pars)
Create a session for this request. |
String |
load(String uri,
IncludeCacheManagerSession session)
This informs the manager that a URI should be "loaded". |
void |
stream(String uri,
IncludeCacheManagerSession session,
org.apache.cocoon.xml.XMLConsumer handler)
Stream the content of the absolute URI. |
void |
terminateSession(IncludeCacheManagerSession session)
Terminate the session. |
| Field Detail |
public static final String ROLE
| Method Detail |
public IncludeCacheManagerSession getSession(Parameters pars)
terminateSession(IncludeCacheManagerSession)
pars - The configuration
public String load(String uri,
IncludeCacheManagerSession session)
throws IOException,
SourceException
uri - The URI to load (maybe relative)session - The corresponding session created by getSession(Parameters)
stream(String, IncludeCacheManagerSession, XMLConsumer)
IOException
SourceException
public void stream(String uri,
IncludeCacheManagerSession session,
org.apache.cocoon.xml.XMLConsumer handler)
throws IOException,
SourceException,
SAXException
uri - The absolute URI returned by load(String, IncludeCacheManagerSession)session - The current sessionhandler - The receiver of the SAX events
IOException
SourceException
SAXExceptionpublic void terminateSession(IncludeCacheManagerSession session)
session - The caching session.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||