public interface JspService extends Service
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE_DEFAULT
Default Value for Jsp Page Buffer Size
|
static String |
BUFFER_SIZE_KEY
Property for Jsp Page Buffer Size
|
static String |
JSP_EXTENSION
The default extension of JSPs
|
static String |
LINK
The key used to store an instance of JspLink in the request
|
static String |
PIPELINE_DATA
The key used to store an instance of PipelineData in the request
|
static String |
SERVICE_NAME
The name used to specify this service in Turbine.properties
|
static String |
TEMPLATE_PATH_KEY
Property key for Template Pathes
|
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.
|
getConfiguration, getName, getProperties, setName, setServiceBroker
static final String SERVICE_NAME
static final String PIPELINE_DATA
static final String LINK
static final String JSP_EXTENSION
static final String TEMPLATE_PATH_KEY
static final String BUFFER_SIZE_KEY
static final int BUFFER_SIZE_DEFAULT
void addDefaultObjects(PipelineData pipelineData)
pipelineData
- the Turbine PipelineData objectvoid handleRequest(PipelineData pipelineData, String templateName, boolean isForward) throws TurbineException
pipelineData
- A PipelineData ObjecttemplateName
- The template to executeisForward
- whether to perform a forward or include.TurbineException
- If a problem occurred while executing the JSPvoid handleRequest(PipelineData pipelineData, String templateName) throws TurbineException
pipelineData
- A PipelineData ObjecttemplateName
- The template to executeTurbineException
- If a problem occurred while executing the JSPint getDefaultBufferSize()
String getRelativeTemplateName(String template)
template
- The name of the template to search for.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.