org.apache.cocoon.components.jsp
Class JSPEngineImplNamedDispatcherInclude

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.jsp.JSPEngineImplNamedDispatcherInclude
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, JSPEngine, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.thread.ThreadSafe

public class JSPEngineImplNamedDispatcherInclude
extends org.apache.avalon.framework.logger.AbstractLoggable
implements JSPEngine, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.activity.Disposable

Allows JSP to be used as a generator. Builds upon the JSP servlet functionality - overrides the output method and returns the byte(s). This implementation includes via ServletContext.getNamedDispatcher() the jsp-response. This a generic implementation.

Version:
CVS $Revision: 1.2.2.3 $ $Date: 2001/10/11 08:56:05 $
Author:
Davanum Srinivas, Bernhard Huber

Field Summary
static java.lang.String CONFIG_SERVLET_NAME
          config-parameter name for specifying the jsp servlet-name. ie. servlet-name
static java.lang.String DEFAULT_SERVLET_NAME
          default value of CONFIG_SERVLET_NAME. ie.
static java.lang.String INC_SERVLET_PATH
          The Servlet Include Path
protected  org.apache.avalon.framework.component.ComponentManager manager
          The component manager
 
Fields inherited from interface org.apache.cocoon.components.jsp.JSPEngine
ROLE
 
Constructor Summary
JSPEngineImplNamedDispatcherInclude()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
          Set the global component manager.
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Set the sitemap-provided configuration.
 void contextualize(org.apache.avalon.framework.context.Context context)
          Contextualize this class
 void dispose()
          dispose
 byte[] executeJSP(java.lang.String url, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, javax.servlet.ServletContext context)
          execute the JSP and return the output
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INC_SERVLET_PATH

public static final java.lang.String INC_SERVLET_PATH
The Servlet Include Path

CONFIG_SERVLET_NAME

public static final java.lang.String CONFIG_SERVLET_NAME
config-parameter name for specifying the jsp servlet-name. ie. servlet-name

DEFAULT_SERVLET_NAME

public static final java.lang.String DEFAULT_SERVLET_NAME
default value of CONFIG_SERVLET_NAME. ie. *jsp, this is the WLS JSP servlet default name

manager

protected org.apache.avalon.framework.component.ComponentManager manager
The component manager
Constructor Detail

JSPEngineImplNamedDispatcherInclude

public JSPEngineImplNamedDispatcherInclude()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Contextualize this class
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Set the sitemap-provided configuration.
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Parameters:
conf - The configuration information
Throws:
org.apache.avalon.framework.configuration.ConfigurationException -  

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Set the global component manager. This metod also sets the ComponentSelector used as language factory for both markup and programming languages.
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
Parameters:
manager - The global component manager

executeJSP

public byte[] executeJSP(java.lang.String url,
                         javax.servlet.http.HttpServletRequest httpRequest,
                         javax.servlet.http.HttpServletResponse httpResponse,
                         javax.servlet.ServletContext context)
                  throws java.io.IOException,
                         javax.servlet.ServletException,
                         org.xml.sax.SAXException,
                         java.lang.Exception
execute the JSP and return the output
Specified by:
executeJSP in interface JSPEngine
Parameters:
context - The Servlet Context
Throws:
java.io.IOException -  
javax.servlet.ServletException -  
org.xml.sax.SAXException -  
java.lang.Exception -  

dispose

public void dispose()
dispose
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.