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
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.1.1.1 $ $Date: 1999/03/09 23:09:28 $
- Author:
- Stefano Mazzocchi
- See Also:
- Serialized Form
Inner Class Summary |
(package private) class |
Cocoon.UserAgent
This inner class is used to store the mapping between browser names
and those signature fragments used for mapping |
Fields inherited from class javax.servlet.GenericServlet |
config |
Method Summary |
private void |
error(java.lang.String message,
java.io.PrintWriter out)
|
private java.util.Properties |
getProperties(java.lang.String file)
Look for the properties file and returns the default one
found in the jar file in none is specified or found. |
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()
|
java.util.Vector |
getUserAgents(java.util.Properties properties)
This method maps the "user-Agent" request parameter to a browser name
following the search rules defined in the servlet properties. |
void |
init(javax.servlet.ServletConfig config)
This method initializes the servlet. |
java.lang.String |
mapUserAgent(java.lang.String agent)
This method maps the "user-Agent" request parameter to a browser name
following the search rules defined in the servlet properties. |
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 |
NAME
public static final java.lang.String NAME
VERSION
public static final java.lang.String VERSION
PROPERTIES
public static final java.lang.String PROPERTIES
BROWSER
public static final java.lang.String BROWSER
parser
Parser parser
processors
java.util.Vector processors
browsers
java.util.Vector browsers
properties
java.util.Properties properties
Cocoon
public Cocoon()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- This method initializes the servlet.
- Overrides:
- init in class javax.servlet.GenericServlet
getProperties
private java.util.Properties getProperties(java.lang.String file)
throws javax.servlet.ServletException
- Look for the properties file and returns the default one
found in the jar file in none is specified or found.
getUserAgents
public java.util.Vector getUserAgents(java.util.Properties properties)
- This method maps the "user-Agent" request parameter to a browser name
following the search rules defined in the servlet properties.
mapUserAgent
public java.lang.String mapUserAgent(java.lang.String agent)
- This method maps the "user-Agent" request parameter to a browser name
following the search rules defined in the servlet properties.
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