The Cocoon Publishing Framework.
This servlet implements an XML/XSL server side publishing framework to
separate different knowledge contexts in different processing layers.
getServletInfo()
This method returns the Servlet information string.
void
init(javax.servlet.ServletConfig config)
This method initializes the servlet.
static void
main(java.lang.String[] argument)
The entry point for standalone usage of Cocoon.
void
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is called by the servlet engine to handle the request.
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
This method initializes the servlet.
Overrides:
init in class javax.servlet.GenericServlet
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
This method is called by the servlet engine to handle the request.
Overrides:
service in class javax.servlet.http.HttpServlet
destroy
public void destroy()
Overrides:
destroy in class javax.servlet.GenericServlet
getServletInfo
public java.lang.String getServletInfo()
This method returns the Servlet information string.
Overrides:
getServletInfo in class javax.servlet.GenericServlet
main
public static void main(java.lang.String[] argument)
throws java.lang.Exception
The entry point for standalone usage of Cocoon.
This part is a little hack to be able to process XML
files from the command line. It's not, by no means, a
complete application and it's a dirty patch.
If would be nice to have things like wildcards processing
to be able to generate static sites from XML+XSL using
cron processes and such. Plus the ability to look for
XSL PI to get the stylesheets from inside, plus the ability
to print on file, to get URLS instead of files, etc, etc...
As you see, there's room for tons on work on this section.