public class VelocityWebAppHandler extends java.lang.Object implements WebAppHandler
| Modifier and Type | Class and Description |
|---|---|
class |
VelocityWebAppHandler.TopicFilter |
WebAppHandler.ConfigComponent| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
templateFile |
protected org.apache.velocity.app.VelocityEngine |
velocityEngine |
| Constructor and Description |
|---|
VelocityWebAppHandler() |
| Modifier and Type | Method and Description |
|---|---|
WebAppHandler.ConfigComponent |
getConfigComponent(WandoraWebApp app,
WandoraWebAppServer server) |
boolean |
getPage(WandoraWebApp app,
WandoraWebAppServer server,
java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.String |
getTemplate() |
void |
init(WandoraWebApp app,
WandoraWebAppServer server,
Options options) |
protected org.apache.velocity.VelocityContext |
makeHandlerContext(WandoraWebApp app,
WandoraWebAppServer server,
java.lang.String target,
javax.servlet.http.HttpServletRequest request) |
void |
save(WandoraWebApp app,
WandoraWebAppServer server,
Options options) |
void |
setTemplate(java.lang.String s) |
void |
start(WandoraWebApp app,
WandoraWebAppServer server) |
void |
stop(WandoraWebApp app,
WandoraWebAppServer server) |
protected org.apache.velocity.app.VelocityEngine velocityEngine
protected java.lang.String templateFile
protected org.apache.velocity.VelocityContext makeHandlerContext(WandoraWebApp app, WandoraWebAppServer server, java.lang.String target, javax.servlet.http.HttpServletRequest request)
public boolean getPage(WandoraWebApp app, WandoraWebAppServer server, java.lang.String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
getPage in interface WebAppHandlerpublic WebAppHandler.ConfigComponent getConfigComponent(WandoraWebApp app, WandoraWebAppServer server)
getConfigComponent in interface WebAppHandlerpublic java.lang.String getTemplate()
public void setTemplate(java.lang.String s)
public void init(WandoraWebApp app, WandoraWebAppServer server, Options options)
init in interface WebAppHandlerpublic void save(WandoraWebApp app, WandoraWebAppServer server, Options options)
save in interface WebAppHandlerpublic void start(WandoraWebApp app, WandoraWebAppServer server)
start in interface WebAppHandlerpublic void stop(WandoraWebApp app, WandoraWebAppServer server)
stop in interface WebAppHandlerCopyright 2004-2015 Wandora Team