Class FreemarkerRequestDispatcherPageFilter

java.lang.Object
com.opensymphony.sitemesh.webapp.SiteMeshFilter
com.opensymphony.module.sitemesh.filter.PageFilter
org.apache.struts2.sitemesh.TemplatePageFilter
com.atlassian.bamboo.ww2.FreemarkerRequestDispatcherPageFilter
All Implemented Interfaces:
javax.servlet.Filter

public class FreemarkerRequestDispatcherPageFilter extends org.apache.struts2.sitemesh.TemplatePageFilter
A filter that works like FreeMarkerPageFilter but it delegates back to a request dispatcher if the template is not found
  • Field Details

  • Constructor Details

    • FreemarkerRequestDispatcherPageFilter

      public FreemarkerRequestDispatcherPageFilter()
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig filterConfig)
      Specified by:
      init in interface javax.servlet.Filter
      Overrides:
      init in class org.apache.struts2.sitemesh.TemplatePageFilter
    • initDecoratorSelector

      protected com.opensymphony.sitemesh.DecoratorSelector initDecoratorSelector(com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext webAppContext)
      Overrides:
      initDecoratorSelector in class com.opensymphony.sitemesh.webapp.SiteMeshFilter
    • applyDecorator

      protected void applyDecorator(com.opensymphony.module.sitemesh.Page page, com.opensymphony.module.sitemesh.Decorator decorator, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletContext servletContext, com.opensymphony.xwork2.ActionContext ctx) throws javax.servlet.ServletException, IOException
      Specified by:
      applyDecorator in class org.apache.struts2.sitemesh.TemplatePageFilter
      Throws:
      javax.servlet.ServletException
      IOException
    • getLocale

      protected Locale getLocale(com.opensymphony.xwork2.ActionInvocation invocation, freemarker.template.Configuration configuration)
      Returns the locale used for the Configuration.getTemplate(String, Locale) call. The base implementation simply returns the locale setting of the action (assuming the action implements LocaleProvider) or, if the action does not the configuration's locale is returned. Override this method to provide different behaviour,
    • setFreemarkerManager

      public static void setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager mgr)