|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.velocity.tools.view.servlet.VelocityViewServlet
org.sakaiproject.vm.VelocityServlet
public class VelocityServlet
Responds with the expansion of a Velocity Template. The template and context references are specified in the request.
| Field Summary |
|---|
| Fields inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet |
|---|
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, DEFAULT_PROPERTIES_PATH, DEFAULT_TOOLBOX_PATH, DEFAULT_TOOLS_PROPERTIES, INIT_PROPS_KEY, SERVLET_CONTEXT_KEY, TOOLBOX_KEY, toolboxManager |
| Constructor Summary | |
|---|---|
VelocityServlet()
|
|
| Method Summary | |
|---|---|
protected String |
escapeVmName(String name)
Change any characters that Velocity doesn't like in the name to '_' to make a valid Velocity name |
org.apache.velocity.Template |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context ctx)
main routine to handle a request. |
protected org.apache.commons.collections.ExtendedProperties |
loadConfiguration(javax.servlet.ServletConfig config)
Called by the VelocityServlet init(). |
| Methods inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet |
|---|
createContext, doGet, doPost, doRequest, error, fillContext, findInitParameter, getResponseWriter, getTemplate, getTemplate, getTemplate, getTemplate, getVelocityEngine, getVelocityProperty, init, initToolbox, initVelocity, mergeTemplate, performMerge, requestCleanup, setContentType, setVelocityEngine |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VelocityServlet()
| Method Detail |
|---|
protected org.apache.commons.collections.ExtendedProperties loadConfiguration(javax.servlet.ServletConfig config)
throws IOException,
FileNotFoundException
loadConfiguration in class org.apache.velocity.tools.view.servlet.VelocityViewServletIOException
FileNotFoundException
public org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context ctx)
main routine to handle a request. Called by VelocityServlet, your responsibility as programmer is to simply return a valid Template
handleRequest in class org.apache.velocity.tools.view.servlet.VelocityViewServletctx - a Velocity Context object to be filled with data. Will be used for rendering this template
protected String escapeVmName(String name)
name - The name to convert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||