| java.lang.Object org.blojsom.dispatcher.freemarker.FreeMarkerDispatcher
FreeMarkerDispatcher | public class FreeMarkerDispatcher implements Dispatcher(Code) | | FreeMarkerDispatcher
author: Dsvid Czarnecki version: $Id: FreeMarkerDispatcher.java,v 1.2 2007/01/17 01:15:46 czarneckid Exp $ since: blojsom 3.0 |
FreeMarkerDispatcher | public FreeMarkerDispatcher()(Code) | | Default constructor.
|
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 |
init | public void init() throws BlojsomException(Code) | | Initialization method for blojsom dispatchers
Parameters: servletConfig - ServletConfig for obtaining any initialization parameters Parameters: blojsomConfiguration - BlojsomConfiguration for blojsom-specific configuration information throws: org.blojsom.BlojsomException - If there is an error initializing the dispatcher |
setBlojsomProperties | public void setBlojsomProperties(Properties blojsomProperties)(Code) | | Set the properties in use by blojsom
Parameters: blojsomProperties - Properties in use by blojsom |
setFreemarkerProperties | public void setFreemarkerProperties(Properties freemarkerProperties)(Code) | | Set the Freemarker properties for use by the dispatcher
Parameters: freemarkerProperties - Properties for Freemarker configuration |
|
|