org.apache.cocoon.components.jsp
Class JSPEngineImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.jsp.JSPEngineImpl
All Implemented Interfaces:
LogEnabled, Parameterizable, ThreadSafe, JSPEngine

public class JSPEngineImpl
extends AbstractLogEnabled
implements JSPEngine, Parameterizable, ThreadSafe

Allows Servlets and JSPs to be used as a generator.

Version:
CVS $Id: JSPEngineImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Davanum Srinivas

Field Summary
static String DEFAULT_SERVLET_CLASS
          The Default Servlet Class Name for Tomcat 3.X and 4.X
 String jspServletClass
          Servlet Class Name
 
Fields inherited from interface org.apache.cocoon.components.jsp.JSPEngine
ROLE
 
Constructor Summary
JSPEngineImpl()
           
 
Method Summary
 byte[] executeJSP(String url, HttpServletRequest servletRequest, HttpServletResponse servletResponse, ServletContext context)
          Execute the Servlet/JSP and return the output in UTF8 encoding.
 void parameterize(Parameters params)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SERVLET_CLASS

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

See Also:
Constant Field Values

jspServletClass

public String jspServletClass
Servlet Class Name

Constructor Detail

JSPEngineImpl

public JSPEngineImpl()
Method Detail

parameterize

public void parameterize(Parameters params)
Specified by:
parameterize in interface Parameterizable
Parameters:
params - The configuration parameters

executeJSP

public byte[] executeJSP(String url,
                         HttpServletRequest servletRequest,
                         HttpServletResponse servletResponse,
                         ServletContext context)
                  throws IOException,
                         ServletException,
                         Exception
Execute the Servlet/JSP and return the output in UTF8 encoding.

Specified by:
executeJSP in interface JSPEngine
Throws:
IOException
ServletException
Exception


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