|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IncludeCacheManager
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,
XMLConsumer handler)
Stream the content of the absolute URI. |
void |
terminateSession(IncludeCacheManagerSession session)
Terminate the session. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
IncludeCacheManagerSession getSession(Parameters pars)
terminateSession(IncludeCacheManagerSession)
pars
- The configuration
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
void stream(String uri, IncludeCacheManagerSession session, 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
SAXException
void terminateSession(IncludeCacheManagerSession session)
session
- The caching session.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |