|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.melati.template.AbstractTemplateEngine
org.melati.template.velocity.VelocityTemplateEngine
org.melati.template.velocity.VelocityServletTemplateEngine
public class VelocityServletTemplateEngine
| Field Summary |
|---|
| Fields inherited from class org.melati.template.velocity.VelocityTemplateEngine |
|---|
NAME |
| Fields inherited from class org.melati.template.AbstractTemplateEngine |
|---|
roots |
| Constructor Summary | |
|---|---|
VelocityServletTemplateEngine()
Constructor. |
|
| Method Summary | |
|---|---|
ServletTemplateContext |
getServletTemplateContext(Melati melati)
Get the template context for Velocity, with servlet specific objects added. |
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 class org.melati.template.velocity.VelocityTemplateEngine |
|---|
expandedTemplate, expandTemplate, expandTemplate, getEngine, getName, getStringWriter, getTemplateContext, init, loadConfiguration, template, templateExtension |
| Methods inherited from class org.melati.template.AbstractTemplateEngine |
|---|
addRoot, getRoots, getTemplateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.melati.template.TemplateEngine |
|---|
addRoot, expandedTemplate, expandTemplate, expandTemplate, getEngine, getName, getRoots, getStringWriter, getTemplateContext, getTemplateName, init, template, templateExtension |
| Constructor Detail |
|---|
public VelocityServletTemplateEngine()
| Method Detail |
|---|
public void init(MelatiConfig melatiConfig,
javax.servlet.http.HttpServlet servlet)
throws TemplateEngineException
init in interface ServletTemplateEnginemelatiConfig - a MelatiConfigservlet - the servlet we are within
TemplateEngineException - if any problem occurs with the engineTemplateServlet
public MelatiWriter getServletWriter(javax.servlet.http.HttpServletResponse response,
boolean buffered)
throws java.io.IOException
ServletTemplateEngine
getServletWriter in interface ServletTemplateEngineresponse - the HttpServletResponse that this writer will be
part ofbuffered - whether the writer should be buffered
MelatiWriter appropriate for this engine.
java.io.IOException - if there is a problem with the filesystem.public ServletTemplateContext getServletTemplateContext(Melati melati)
getServletTemplateContext in interface ServletTemplateEnginemelati - the Melati
TemplateContext
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||