|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.turbine.services.template.BaseTemplateEngineService
org.apache.turbine.services.jsp.TurbineJspService
This is a Service that can process JSP templates from within a Turbine screen.
Field Summary |
Fields inherited from class org.apache.turbine.services.BaseService |
name, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.turbine.services.jsp.JspService |
BUFFER_SIZE_DEFAULT, BUFFER_SIZE_KEY, JSP_EXTENSION, LINK, RUNDATA, SERVICE_NAME, TEMPLATE_PATH_KEY |
Fields inherited from interface org.apache.turbine.services.template.TemplateEngineService |
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 Summary | |
TurbineJspService()
|
Method Summary | |
void |
addDefaultObjects(RunData data)
Adds some convenience objects to the request. |
int |
getDefaultBufferSize()
Returns the default buffer size of the JspService |
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 |
void |
handleRequest(RunData data,
java.lang.String templateName)
executes the JSP given by templateName. |
void |
handleRequest(RunData data,
java.lang.String templateName,
boolean isForward)
executes the JSP given by templateName. |
void |
init()
Load all configured components and initialize them. |
void |
init(javax.servlet.ServletConfig config)
Deprecated. use init() instead. |
boolean |
templateExists(java.lang.String template)
Determine whether a given template is available on the configured template pathes. |
Methods inherited from class org.apache.turbine.services.template.BaseTemplateEngineService |
getAssociatedFileExtensions, getTemplateEngineServiceConfiguration, initConfiguration, registerConfiguration |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, shutdown |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker, shutdown |
Constructor Detail |
public TurbineJspService()
Method Detail |
public void init() throws InitializationException
init
in interface Initable
init
in class TurbineBaseService
InitializationException
- Something went wrong in the init
stagepublic void init(javax.servlet.ServletConfig config) throws InitializationException
init
in class TurbineBaseService
config
- The ServletConfiguration from Turbine
InitializationException
- Something went wrong when starting up.public void addDefaultObjects(RunData data)
addDefaultObjects
in interface JspService
data
- the turbine rundata objectpublic int getDefaultBufferSize()
getDefaultBufferSize
in interface JspService
public void handleRequest(RunData data, java.lang.String templateName) throws TurbineException
handleRequest
in interface JspService
data
- A RunData ObjecttemplateName
- the filename of the template.
TurbineException
- Any exception thrown while processing will be
wrapped into a TurbineException and rethrown.public void handleRequest(RunData data, java.lang.String templateName, boolean isForward) throws TurbineException
handleRequest
in interface JspService
data
- A RunData ObjecttemplateName
- the filename of the template.isForward
- whether to perform a forward or include.
TurbineException
- Any exception trown while processing will be
wrapped into a TurbineException and rethrown.public boolean templateExists(java.lang.String template)
templateExists
in interface TemplateEngineService
templateExists
in class BaseTemplateEngineService
template
- The name of the requested Template
TemplateEngineService.templateExists(java.lang.String)
public java.lang.String getRelativeTemplateName(java.lang.String template)
getRelativeTemplateName
in interface JspService
template
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |