public class TurbineJspService extends BaseTemplateEngineService implements JspService
name, serviceBroker
initableBroker, isInitialized
BUFFER_SIZE_DEFAULT, BUFFER_SIZE_KEY, JSP_EXTENSION, LINK, PIPELINE_DATA, SERVICE_NAME, TEMPLATE_PATH_KEY
DEFAULT_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, registerConfiguration
init, init, shutdown
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
getInit, getInitableBroker, setInit, setInitableBroker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getName, getProperties, setName, setServiceBroker
getInit, init, setInitableBroker, shutdown
public TurbineJspService()
public void init() throws InitializationException
init
in interface Initable
init
in class TurbineBaseService
InitializationException
- Something went wrong in the init
stagepublic void addDefaultObjects(PipelineData pipelineData)
addDefaultObjects
in interface JspService
pipelineData
- the Turbine PipelineData objectpublic int getDefaultBufferSize()
getDefaultBufferSize
in interface JspService
public void handleRequest(PipelineData pipelineData, String templateName, boolean isForward) throws TurbineException
handleRequest
in interface JspService
pipelineData
- 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 JspService
pipelineData
- A PipelineData ObjecttemplateName
- The template to executeTurbineException
- If a problem occurred while executing the JSPpublic boolean templateExists(String template)
templateExists
in interface TemplateEngineService
templateExists
in class BaseTemplateEngineService
template
- The name of the requested TemplateTemplateEngineService.templateExists(java.lang.String)
public String getRelativeTemplateName(String template)
getRelativeTemplateName
in interface JspService
template
- the name of the templateCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.