| org.apache.jetspeed.velocity.JetspeedVelocityViewServlet
JetspeedVelocityViewServlet | public class JetspeedVelocityViewServlet extends BridgesVelocityViewServlet (Code) | | version: $Id: JetspeedVelocityViewServlet.java 550655 2007-06-26 01:41:35Z taylor $ |
Method Summary | |
protected void | error(HttpServletRequest request, HttpServletResponse response, Exception e) | public Template | getTemplate(String name) Retrieves the requested template.
See Also: org.apache.velocity.tools.view.servlet.VelocityViewServlet.getTemplate() Parameters: name - The file name of the template to retrieve relative to the template root. | public Template | getTemplate(String name, String encoding) Retrieves the requested template with the specified character encoding. | protected Template | handleRequest(HttpServletRequest request, HttpServletResponse response, Context ctx) Handle the template processing request. | public void | init(ServletConfig config) Initialize servlet, BridgesVelocityViewServlet, and VelocityViewServlet. | protected void | initVelocity(ServletConfig config) overriding VelocityViewServlet initialization of global Velocity to properly provide our own velocity.properties
so to prevent an ERROR logging for not finding the default global VM_global_library.vm (which isn't available). |
eventCartridge | EventCartridge eventCartridge(Code) | | Velocity EventCartridge for handling event
|
getTemplate | public Template getTemplate(String name) throws ResourceNotFoundException, ParseErrorException, Exception(Code) | | Retrieves the requested template.
See Also: org.apache.velocity.tools.view.servlet.VelocityViewServlet.getTemplate() Parameters: name - The file name of the template to retrieve relative to the template root. The requested template. throws: ResourceNotFoundException - if template not found from any available source. throws: ParseErrorException - if template cannot be parsed due to syntax (or other) error. throws: Exception - if an error occurs in template initialization |
getTemplate | public Template getTemplate(String name, String encoding) throws ResourceNotFoundException, ParseErrorException, Exception(Code) | | Retrieves the requested template with the specified character encoding.
See Also: org.apache.velocity.tools.view.servlet.VelocityViewServlet.getTemplate() Parameters: name - The file name of the template to retrieve relative to the template root. Parameters: encoding - the character encoding of the template The requested template. throws: ResourceNotFoundException - if template not found from any available source. throws: ParseErrorException - if template cannot be parsed due to syntax (or other) error. throws: Exception - if an error occurs in template initialization |
handleRequest | protected Template handleRequest(HttpServletRequest request, HttpServletResponse response, Context ctx) throws Exception(Code) | | Handle the template processing request.
See Also: org.apache.velocity.tools.view.servlet.VelocityViewServlet.handleRequest() Parameters: request - client request Parameters: response - client response Parameters: ctx - VelocityContext to fill Velocity Template object or null |
init | public void init(ServletConfig config) throws ServletException(Code) | | Initialize servlet, BridgesVelocityViewServlet, and VelocityViewServlet.
See Also: org.apache.velocity.tools.view.servlet.VelocityViewServlet.init() Parameters: config - servlet configuation |
initVelocity | protected void initVelocity(ServletConfig config) throws ServletException(Code) | | overriding VelocityViewServlet initialization of global Velocity to properly provide our own velocity.properties
so to prevent an ERROR logging for not finding the default global VM_global_library.vm (which isn't available).
|
|
|