public class TurbineJspService extends BaseTemplateEngineService implements JspService
name, serviceBrokerinitableBroker, isInitializedBUFFER_SIZE_DEFAULT, BUFFER_SIZE_KEY, JSP_EXTENSION, LINK, PIPELINE_DATA, SERVICE_NAME, TEMPLATE_PATH_KEYDEFAULT_ERROR_SCREEN, DEFAULT_LAYOUT, DEFAULT_LAYOUT_TEMPLATE, DEFAULT_NAVIGATION, DEFAULT_NAVIGATION_TEMPLATE, DEFAULT_PAGE, DEFAULT_SCREEN, DEFAULT_SCREEN_TEMPLATE, DEFAULT_TEMPLATE_EXTENSION, TEMPLATE_EXTENSIONS| Constructor and Description |
|---|
TurbineJspService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultObjects(PipelineData pipelineData)
Adds some convenience objects to the request.
|
int |
getDefaultBufferSize()
Returns the default buffer size of the JspService
|
String |
getRelativeTemplateName(String template)
Searches 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
|
void |
handleRequest(PipelineData pipelineData,
String templateName)
executes the JSP given by templateName.
|
void |
handleRequest(PipelineData pipelineData,
String templateName,
boolean isForward)
executes the JSP given by templateName.
|
void |
init()
Load all configured components and initialize them.
|
boolean |
templateExists(String template)
Determine whether a given template is available on the
configured template pathes.
|
getAssociatedFileExtensions, getTemplateEngineServiceConfiguration, initConfiguration, registerConfigurationinit, init, shutdowngetConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBrokergetInit, getInitableBroker, setInit, setInitableBrokerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getName, getProperties, setName, setServiceBrokergetInit, init, setInitableBroker, shutdownpublic TurbineJspService()
public void init() throws InitializationException
init in interface Initableinit in class TurbineBaseServiceInitializationException - Something went wrong in the init
stagepublic void addDefaultObjects(PipelineData pipelineData)
addDefaultObjects in interface JspServicepipelineData - the Turbine PipelineData objectpublic int getDefaultBufferSize()
getDefaultBufferSize in interface JspServicepublic void handleRequest(PipelineData pipelineData, String templateName, boolean isForward) throws TurbineException
handleRequest in interface JspServicepipelineData - A PipelineData ObjecttemplateName - The template to executeisForward - whether to perform a forward or include.TurbineException - If a problem occurred while executing the JSPpublic void handleRequest(PipelineData pipelineData, String templateName) throws TurbineException
handleRequest in interface JspServicepipelineData - A PipelineData ObjecttemplateName - The template to executeTurbineException - If a problem occurred while executing the JSPpublic boolean templateExists(String template)
templateExists in interface TemplateEngineServicetemplateExists in class BaseTemplateEngineServicetemplate - The name of the requested TemplateTemplateEngineService.templateExists(java.lang.String)public String getRelativeTemplateName(String template)
getRelativeTemplateName in interface JspServicetemplate - Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.