com.atlassian.bamboo.ww2
Class FreemarkerRequestDispatcherPageFilter
java.lang.Object
com.opensymphony.sitemesh.webapp.SiteMeshFilter
com.opensymphony.module.sitemesh.filter.PageFilter
com.opensymphony.webwork.sitemesh.TemplatePageFilter
com.atlassian.bamboo.ww2.FreemarkerRequestDispatcherPageFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class FreemarkerRequestDispatcherPageFilter
- extends com.opensymphony.webwork.sitemesh.TemplatePageFilter
A filter that works like FreeMarkerPageFilter
but it delegates back to a
request dispatcher if the template is not found
Method Summary |
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.xwork.ActionContext ctx)
|
protected java.util.Locale |
getLocale(com.opensymphony.xwork.ActionInvocation invocation,
freemarker.template.Configuration configuration)
Returns the locale used for the Configuration.getTemplate(String, Locale) call. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
protected com.opensymphony.sitemesh.DecoratorSelector |
initDecoratorSelector(com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext webAppContext)
|
Methods inherited from class com.opensymphony.webwork.sitemesh.TemplatePageFilter |
applyDecorator, getEncoding |
Methods inherited from class com.opensymphony.sitemesh.webapp.SiteMeshFilter |
destroy, doFilter, initContentProcessor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEADER_X_HISTORY_XHR
public static final java.lang.String HEADER_X_HISTORY_XHR
- See Also:
- Constant Field Values
HEADER_NO_DECORATE
public static final java.lang.String HEADER_NO_DECORATE
- See Also:
- Constant Field Values
BAMBOO_SUCCESS_RETURN_MODE
public static final java.lang.String BAMBOO_SUCCESS_RETURN_MODE
- See Also:
- Constant Field Values
BAMBOO_SUCCESS_RETURN_MODE_JSON
public static final java.lang.String BAMBOO_SUCCESS_RETURN_MODE_JSON
- See Also:
- Constant Field Values
BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTML
public static final java.lang.String BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTML
- See Also:
- Constant Field Values
FreemarkerRequestDispatcherPageFilter
public FreemarkerRequestDispatcherPageFilter()
init
public void init(javax.servlet.FilterConfig filterConfig)
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class com.opensymphony.webwork.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.xwork.ActionContext ctx)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
applyDecorator
in class com.opensymphony.webwork.sitemesh.TemplatePageFilter
- Throws:
javax.servlet.ServletException
java.io.IOException
getLocale
protected java.util.Locale getLocale(com.opensymphony.xwork.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,
Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.