org.apache.turbine.services.jsp
Class TurbineJsp

java.lang.Object
  extended byorg.apache.turbine.services.jsp.TurbineJsp

public abstract class TurbineJsp
extends java.lang.Object

Facade class for the Jsp Service.

Version:
$Id: TurbineJsp.java 534527 2007-05-02 16:10:59Z tv $
Author:
Henning P. Schmiedehausen

Constructor Summary
TurbineJsp()
           
 
Method Summary
static void addDefaultObjects(RunData data)
          Adds some convenience objects to the request.
static int getDefaultBufferSize()
          Returns the default buffer size of the JspService
static java.lang.String getRelativeTemplateName(java.lang.String template)
          Searchs for a template in the default.template path[s] and returns the template name with a relative path which is required by javax.servlet.RequestDispatcher
protected static JspService getService()
          Utility method for accessing the service implementation
static void handleRequest(RunData data, java.lang.String templateName)
          executes the JSP given by templateName.
static void handleRequest(RunData data, java.lang.String templateName, boolean isForward)
          executes the JSP given by templateName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurbineJsp

public TurbineJsp()
Method Detail

getService

protected static JspService getService()
Utility method for accessing the service implementation

Returns:
a JspService implementation instance

addDefaultObjects

public static void addDefaultObjects(RunData data)
Adds some convenience objects to the request. For example an instance of JspLink which can be used to generate links to other templates.

Parameters:
data - the turbine rundata object

handleRequest

public static void handleRequest(RunData data,
                                 java.lang.String templateName,
                                 boolean isForward)
                          throws TurbineException
executes the JSP given by templateName.

Parameters:
data - A RunData Object
templateName - The template to execute
isForward - whether to perform a forward or include.
Throws:
TurbineException - If a problem occured while executing the JSP

handleRequest

public static void handleRequest(RunData data,
                                 java.lang.String templateName)
                          throws TurbineException
executes the JSP given by templateName.

Parameters:
data - A RunData Object
templateName - The template to execute
Throws:
TurbineException - If a problem occured while executing the JSP

getDefaultBufferSize

public static int getDefaultBufferSize()
Returns the default buffer size of the JspService

Returns:
The default buffer size.

getRelativeTemplateName

public static java.lang.String getRelativeTemplateName(java.lang.String template)
Searchs for a template in the default.template path[s] and returns the template name with a relative path which is required by javax.servlet.RequestDispatcher

Parameters:
template - The name of the template to search for.
Returns:
the template with a relative path


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.