|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implementations of the FreeMarkerService interface.
| Field Summary | |
static java.lang.String |
CONTEXT
Deprecated. The name used as a key in TurbineInfo when storing the Context. |
static java.lang.String |
SERVICE_NAME
Deprecated. The name used to specify this service in TurbineResources.properties. |
| Method Summary | |
java.lang.String |
getBasePath()
Deprecated. Gets the base path for the FreeMarker templates. |
freemarker.template.Template |
getCachedTemplate(java.lang.String templateName)
Deprecated. Return a FreeMarker template from the cache. |
freemarker.template.SimpleHash |
getContext()
Deprecated. Create a context needed by the FreeMarker template. |
freemarker.template.SimpleHash |
getContext(RunData data)
Deprecated. Create a context from the RunData object. |
freemarker.template.SimpleHash |
getContext(javax.servlet.ServletRequest req)
Deprecated. Create a context needed by the FreeMarker template. |
freemarker.template.Template |
getNonCachedTemplate(java.lang.String templateName)
Deprecated. Return a FreeMarker template. |
java.lang.String |
handleRequest(freemarker.template.SimpleHash context,
java.lang.String templateName,
boolean cache)
Deprecated. Process the request and fill in the template with the values you set in the WebContext. |
| 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, init, setInitableBroker, shutdown |
| Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String CONTEXT
| Method Detail |
public freemarker.template.SimpleHash getContext()
public freemarker.template.SimpleHash getContext(javax.servlet.ServletRequest req)
req - A ServletRequest.
public freemarker.template.SimpleHash getContext(RunData data)
data - The Turbine RunData object.
public java.lang.String handleRequest(freemarker.template.SimpleHash context,
java.lang.String templateName,
boolean cache)
throws TurbineException
context - A SimpleHash with the context.templateName - A String with the filename of the template.cache - True if the parsed template should be cached.
TurbineException - Any exception trown while processing will be
wrapped into a TurbineException and rethrown.public java.lang.String getBasePath()
public freemarker.template.Template getNonCachedTemplate(java.lang.String templateName)
throws java.io.IOException
templateName - A String with the name of the template.
IOException, - if there was an I/O problem.
java.io.IOExceptionpublic freemarker.template.Template getCachedTemplate(java.lang.String templateName)
templateName - A String with the name of the template.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||