com.xmlserv.main
Interface ContentManager

All Known Implementing Classes:
AppContentManager

public interface ContentManager


Method Summary
 void clearCache()
          Clean cache, re-read config in case configuration is cached.
 void destroy()
          Called before shutdown.
 void init()
          Initialize.
 void process(java.lang.String requestPath, org.jdom.Document document, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, SecurityManager securityManager)
          Called for postprocessing each backends output.
 

Method Detail

init

public void init()
          throws XMLServException
Initialize. This is called once before any requests are serviced.

process

public void process(java.lang.String requestPath,
                    org.jdom.Document document,
                    javax.servlet.ServletContext servletContext,
                    javax.servlet.http.HttpServletRequest req,
                    SecurityManager securityManager)
             throws XMLServException
Called for postprocessing each backends output.
Parameters:
requestPath - The request path without the servlet context path and without any HTTP GET parameters.
document - The JDOM Document representign the Backends output. This is augmented with additional Elements directly under the document root.
servletContext - The Servlet Context.
req - The Servlet Request.
securityManager - The SecurityManager.
Throws:
XMLServExcepion - On any error.

clearCache

public void clearCache()
                throws XMLServException
Clean cache, re-read config in case configuration is cached.

destroy

public void destroy()
Called before shutdown. Should release all resources held by this object. Exceptions may be written to System.out, but may not be thrown (in case of a shutdown, this is not of great concern anyway).