org.apache.cocoon
Class Cocoon

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.apache.cocoon.Cocoon

public class Cocoon
extends javax.servlet.http.HttpServlet
implements CocoonDefaults

The Cocoon servlet. This servlet implements an XML/XSL server side publishing framework to separate different knowledge contexts in different processing layers.

Version:
$Revision: 1.3 $ $Date: 1999/03/24 13:46:05 $
Author:
Stefano Mazzocchi, Greg Ritter
See Also:
Serialized Form

Field Summary
(package private)  Browsers browsers
           
(package private)  Cache cache
           
(package private)  Configurations configurations
           
(package private)  Parser parser
           
(package private)  Printer printer
           
(package private)  java.util.Vector processors
           
 
Fields inherited from class javax.servlet.GenericServlet
config
 
Constructor Summary
Cocoon()
           
 
Method Summary
private  void error(java.lang.String message, java.io.PrintWriter out)
           
 java.net.URLConnection getResourceConnection(java.lang.String path)
          This method is used to abstract the resource from the file system like mandated by the Servlet API 2.1 but to let this servlet remain compatible with 2.0 system until 2.1 systems are widely available.
 java.lang.String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
          This method initializes the servlet.
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method is called by the servlet engine to handle the request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getAllDeclaredMethods, getLastModified, maybeSetLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, log
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

parser

Parser parser

processors

java.util.Vector processors

printer

Printer printer

browsers

Browsers browsers

configurations

Configurations configurations

cache

Cache cache
Constructor Detail

Cocoon

public Cocoon()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
This method initializes the servlet.
Overrides:
init in class javax.servlet.GenericServlet

getResourceConnection

public java.net.URLConnection getResourceConnection(java.lang.String path)
This method is used to abstract the resource from the file system like mandated by the Servlet API 2.1 but to let this servlet remain compatible with 2.0 system until 2.1 systems are widely available.

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

error

private void error(java.lang.String message,
                   java.io.PrintWriter out)
            throws java.io.IOException

getServletInfo

public java.lang.String getServletInfo()
Overrides:
getServletInfo in class javax.servlet.GenericServlet

Copyright (c) 1998 The Java Apache Project