|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface ServletTemplateEngine
Interface for a Template engine for use with Melati and Servlets.
| Method Summary | |
|---|---|
ServletTemplateContext |
getServletTemplateContext(Melati melati)
Get the generic parameters for this engine. |
MelatiWriter |
getServletWriter(javax.servlet.http.HttpServletResponse response,
boolean buffered)
Get a Writer which can write to Servlet output. |
void |
init(MelatiConfig melatiConfig,
javax.servlet.http.HttpServlet servlet)
Construct a new Engine for use in a servlet environment. |
| Methods inherited from interface org.melati.template.TemplateEngine |
|---|
addRoot, expandedTemplate, expandTemplate, expandTemplate, getEngine, getName, getRoots, getStringWriter, getTemplateContext, getTemplateName, init, template, templateExtension |
| Method Detail |
|---|
void init(MelatiConfig melatiConfig,
javax.servlet.http.HttpServlet servlet)
throws TemplateEngineException
melatiConfig - a MelatiConfigservlet - the servlet we are within
TemplateEngineException - if any problem occurs with the engineTemplateServlet
MelatiWriter getServletWriter(javax.servlet.http.HttpServletResponse response,
boolean buffered)
response - the HttpServletResponse that this
writer will be part ofbuffered - whether the writer should be buffered
MelatiWriter
appropriate for this engine.
ServletTemplateContext getServletTemplateContext(Melati melati)
throws TemplateEngineException
melati - the Melati
ServletTemplateContext
TemplateEngineException - if any problem occurs with the engine
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||