| java.lang.Object org.blojsom.dispatcher.velocity.VelocityDispatcher
VelocityDispatcher | public class VelocityDispatcher implements Dispatcher(Code) | | Velocity dispatcher
author: David Czarnecki since: blojsom 3.0 version: $Id: VelocityDispatcher.java,v 1.6 2007/01/17 02:35:17 czarneckid Exp $ |
Inner Class :public class BlojsomRenderTool | |
VelocityDispatcher | public VelocityDispatcher()(Code) | | Create a new instance of the Velocity dispatcher
|
destroyVelocityContext | protected void destroyVelocityContext(VelocityContext velocityContext)(Code) | | Remove references from the Velocity context
Parameters: velocityContext - VelocityContext |
dispatch | public void dispatch(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, String flavorTemplate, String flavorContentType) throws IOException, ServletException(Code) | | Dispatch a request and response. A context map is provided for the BlojsomServlet to pass
any required information for use by the dispatcher. The dispatcher is also
provided with the template for the requested flavor along with the content type for the
specific flavor.
Parameters: httpServletRequest - Request Parameters: httpServletResponse - Response Parameters: blog - Blog Parameters: context - Context map Parameters: flavorTemplate - Template to dispatch to for the requested flavor Parameters: flavorContentType - Content type for the requested flavor throws: java.io.IOException - If there is an exception during IO throws: javax.servlet.ServletException - If there is an exception in dispatching the request |
populateVelocityContext | protected void populateVelocityContext(HttpServletRequest httpServletRequest, Map context)(Code) | | Populate the Velocity context with the request and session attributes
Parameters: httpServletRequest - Request Parameters: context - Context |
setBlojsomProperties | public void setBlojsomProperties(Properties blojsomProperties)(Code) | | Set the properties in use by blojsom
Parameters: blojsomProperties - Properties in use by blojsom |
setVelocityProperties | public void setVelocityProperties(Properties velocityProperties)(Code) | | Set the Velocity properties for use by the dispatcher
Parameters: velocityProperties - Properties for Velocity configuration |
|
|