org.apache.cocoon.components.jsp
Class JSPEngineImpl

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.jsp.JSPEngineImpl
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, JSPEngine, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.thread.ThreadSafe

public class JSPEngineImpl
extends org.apache.avalon.framework.logger.AbstractLoggable
implements JSPEngine, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.thread.ThreadSafe

Allows JSP to be used as a generator. Builds upon the JSP servlet functionality - overrides the output method and returns the byte(s).

Version:
CVS $Id: JSPEngineImpl.java,v 1.6 2002/02/22 07:00:07 cziegeler Exp $
Author:
Davanum Srinivas

Field Summary
static java.lang.String DEFAULT_SERVLET_CLASS
          The Default Servlet Class Name for Tomcat 3.X and 4.X
static java.lang.String INC_SERVLET_PATH
          The Servlet Include Path
 java.lang.String jspServletClass
          Servlet Class Name
 
Fields inherited from interface org.apache.cocoon.components.jsp.JSPEngine
ROLE
 
Constructor Summary
JSPEngineImpl()
           
 
Method Summary
 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
 void parameterize(org.apache.avalon.framework.parameters.Parameters params)
          Set the sitemap-provided configuration.
 
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

DEFAULT_SERVLET_CLASS

public static final java.lang.String DEFAULT_SERVLET_CLASS
The Default Servlet Class Name for Tomcat 3.X and 4.X

jspServletClass

public java.lang.String jspServletClass
Servlet Class Name
Constructor Detail

JSPEngineImpl

public JSPEngineImpl()
Method Detail

parameterize

public void parameterize(org.apache.avalon.framework.parameters.Parameters params)
Set the sitemap-provided configuration.
Specified by:
parameterize in interface org.apache.avalon.framework.parameters.Parameterizable
Parameters:
conf - The configuration information
Throws:
ConfigurationException -  

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,
                         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 -  
SAXException -  
java.lang.Exception -  


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