org.apache.cocoon.components.jsp
Class JSPEngineImplWLS

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

public class JSPEngineImplWLS
extends AbstractLogEnabled
implements JSPEngine, Parameterizable, ThreadSafe

Allows WLS JSP to be used as a generator. This implementation includes via ServletContext.getNamedDispatcher() the jsp-response. This a WLS-specific implementation. This code contain WLS 5.1 specific classes, and uses WLS internal classes.

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

Field Summary
static String CONFIG_SERVLET_NAME
          config-parameter name for specifying the jsp servlet-name.
static String DEFAULT_SERVLET_NAME
          default value of CONFIG_SERVLET_NAME.
static String INC_SERVLET_PATH
          The Servlet Include Path
 
Fields inherited from interface org.apache.cocoon.components.jsp.JSPEngine
ROLE
 
Constructor Summary
JSPEngineImplWLS()
           
 
Method Summary
 byte[] executeJSP(String url, HttpServletRequest servletRequest, HttpServletResponse servletResponse, ServletContext servletContext)
          execute the JSP and return the output
 void parameterize(Parameters params)
          parameterize
 
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

INC_SERVLET_PATH

public static final String INC_SERVLET_PATH
The Servlet Include Path

See Also:
Constant Field Values

CONFIG_SERVLET_NAME

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

See Also:
Constant Field Values

DEFAULT_SERVLET_NAME

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

See Also:
Constant Field Values
Constructor Detail

JSPEngineImplWLS

public JSPEngineImplWLS()
Method Detail

parameterize

public void parameterize(Parameters params)
                  throws ParameterException
parameterize

Specified by:
parameterize in interface Parameterizable
Parameters:
params - Parameters
Throws:
ParameterException

executeJSP

public byte[] executeJSP(String url,
                         HttpServletRequest servletRequest,
                         HttpServletResponse servletResponse,
                         ServletContext servletContext)
                  throws IOException,
                         ServletException,
                         Exception
execute the JSP and return the output

Specified by:
executeJSP in interface JSPEngine
Parameters:
url -
servletRequest -
servletResponse -
servletContext -
Throws:
IOException
ServletException
Exception


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