| java.lang.Object org.blojsom.dispatcher.webmacro.WebMacroDispatcher
WebMacroDispatcher | public class WebMacroDispatcher implements Dispatcher(Code) | | WebMacro dispatcher
author: David Czarnecki since: blojsom 3.0 version: $Id: WebMacroDispatcher.java,v 1.2 2007/01/17 01:15:46 czarneckid Exp $ |
WebMacroDispatcher | public WebMacroDispatcher()(Code) | | Construct a new instance of the WebMacro dispatcher
|
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 |
getWebMacroGlobalTemplatePath | protected String getWebMacroGlobalTemplatePath()(Code) | | Return a path appropriate for the WebMacro file resource loader
blojsom installation directory + base configuration directory + templates directory |
getWebMacroTemplatePathForBlog | protected String getWebMacroTemplatePathForBlog(String blogID)(Code) | | Return a path appropriate for the WebMacro file resource loader for a given blog
Parameters: blogID - Blog ID blojsom installation directory + base configuration directory + Blog ID + templates directory |
populateWebMacroContext | protected void populateWebMacroContext(HttpServletRequest httpServletRequest, Map context)(Code) | | Populate the WebMacro 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 |
setWebMacroProperties | public void setWebMacroProperties(Properties webMacroProperties)(Code) | | Set the WebMacro properties for use by the dispatcher
Parameters: webMacroProperties - Properties for WebMacro configuration |
|
|