org.apache.cocoon.servlet
Class RequestProcessor

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.servlet.RequestProcessor
Direct Known Subclasses:
SitemapServlet.RequestProcessor

public class RequestProcessor
extends org.apache.cocoon.util.AbstractLogEnabled

This is the entry point for Cocoon execution as an HTTP Servlet.

Version:
$Id: RequestProcessor.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  BeanFactory cocoonBeanFactory
          Root Cocoon Bean Factory.
protected  String containerEncoding
          Configured servlet container encoding.
protected  org.apache.cocoon.environment.Context environmentContext
          Cocoon environment context.
protected static String PROCESSED_BY
           
protected  org.apache.cocoon.Processor processor
          The processor.
protected  RequestListener requestListener
          An optional component that is called before and after processing all requests.
protected  ServletContext servletContext
          The servlet context.
protected  ServletSettings servletSettings
          The special servlet settings.
protected  org.apache.cocoon.configuration.Settings settings
          The root settings.
 
Constructor Summary
RequestProcessor(ServletContext servletContext)
           
 
Method Summary
protected  org.apache.cocoon.environment.Environment getEnvironment(String uri, HttpServletRequest req, HttpServletResponse res)
          Create the environment for the request
protected  org.apache.cocoon.Processor getProcessor()
           
protected  String getURI(HttpServletRequest request, HttpServletResponse res)
           
protected  boolean process(org.apache.cocoon.environment.Environment environment)
           
protected  boolean rethrowExceptions()
           
 void service(HttpServletRequest request, HttpServletResponse res)
          Process the specified HttpServletRequest producing output on the specified HttpServletResponse.
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESSED_BY

protected static final String PROCESSED_BY
See Also:
Constant Field Values

servletContext

protected final ServletContext servletContext
The servlet context.


environmentContext

protected final org.apache.cocoon.environment.Context environmentContext
Cocoon environment context.


containerEncoding

protected final String containerEncoding
Configured servlet container encoding. Defaults to ISO-8859-1.


cocoonBeanFactory

protected final BeanFactory cocoonBeanFactory
Root Cocoon Bean Factory.


settings

protected final org.apache.cocoon.configuration.Settings settings
The root settings.


servletSettings

protected final ServletSettings servletSettings
The special servlet settings.


processor

protected org.apache.cocoon.Processor processor
The processor.


requestListener

protected RequestListener requestListener
An optional component that is called before and after processing all requests.

Constructor Detail

RequestProcessor

public RequestProcessor(ServletContext servletContext)
Method Detail

getProcessor

protected org.apache.cocoon.Processor getProcessor()

rethrowExceptions

protected boolean rethrowExceptions()

service

public void service(HttpServletRequest request,
                    HttpServletResponse res)
             throws ServletException,
                    IOException
Process the specified HttpServletRequest producing output on the specified HttpServletResponse.

Throws:
ServletException
IOException

getURI

protected String getURI(HttpServletRequest request,
                        HttpServletResponse res)
                 throws IOException
Throws:
IOException

getEnvironment

protected org.apache.cocoon.environment.Environment getEnvironment(String uri,
                                                                   HttpServletRequest req,
                                                                   HttpServletResponse res)
                                                            throws Exception
Create the environment for the request

Throws:
Exception

process

protected boolean process(org.apache.cocoon.environment.Environment environment)
                   throws Exception
Throws:
Exception
See Also:
Processor.process(org.apache.cocoon.environment.Environment)


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.