GeoPubby
Version 0.1.0.0
|
A facade class that simplifies using a custom Velocity engine from a servlet. More...
Public Member Functions | |
VelocityHelper (ServletContext servletContext, HttpServletResponse response) | |
Context | getVelocityContext () |
void | renderXHTML (String templateName) |
Renders a template using the template variables put into the velocity context. More... | |
Private Member Functions | |
VelocityEngine | getVelocityEngine () |
VelocityEngine | createVelocityEngine () |
Private Attributes | |
final ServletContext | servletContext |
final HttpServletResponse | response |
final Context | velocityContext |
Static Private Attributes | |
static final String | VELOCITY_ENGINE |
A facade class that simplifies using a custom Velocity engine from a servlet.
It encapsulates creation of the VelocityEngine instance, its storage in the servlet context, and the rendering of templates into the servlet response output stream.
VelocityHelper | ( | ServletContext | servletContext, |
HttpServletResponse | response | ||
) |
References VelocityHelper.response, and VelocityHelper.servletContext.
|
private |
Context getVelocityContext | ( | ) |
References VelocityHelper.velocityContext.
|
private |
References VelocityHelper.createVelocityEngine(), VelocityHelper.servletContext, and VelocityHelper.VELOCITY_ENGINE.
Referenced by VelocityHelper.renderXHTML().
void renderXHTML | ( | String | templateName | ) |
Renders a template using the template variables put into the velocity context.
References VelocityHelper.getVelocityEngine(), VelocityHelper.response, and VelocityHelper.velocityContext.
|
private |
Referenced by VelocityHelper.renderXHTML(), and VelocityHelper.VelocityHelper().
|
private |
|
staticprivate |
Referenced by VelocityHelper.getVelocityEngine().
|
private |
Referenced by VelocityHelper.getVelocityContext(), and VelocityHelper.renderXHTML().