com.opensymphony.webwork.sitemesh
Class TemplatePageFilter
java.lang.Object
com.opensymphony.sitemesh.webapp.SiteMeshFilter
com.opensymphony.module.sitemesh.filter.PageFilter
com.opensymphony.webwork.sitemesh.TemplatePageFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- FreeMarkerPageFilter, VelocityPageFilter
public abstract class TemplatePageFilter
- extends com.opensymphony.module.sitemesh.filter.PageFilter
An abstract template page filter that sets up the proper contexts for
template processing.
- Author:
- patrick
Method Summary |
protected void |
applyDecorator(com.opensymphony.module.sitemesh.Page page,
com.opensymphony.module.sitemesh.Decorator decorator,
HttpServletRequest req,
HttpServletResponse res)
Applies the decorator, creating the relevent contexts and delegating to
the extended applyDecorator(). |
protected abstract void |
applyDecorator(com.opensymphony.module.sitemesh.Page page,
com.opensymphony.module.sitemesh.Decorator decorator,
HttpServletRequest req,
HttpServletResponse res,
ServletContext servletContext,
ActionContext ctx)
Applies the decorator, using the relevent contexts |
protected String |
getEncoding()
Gets the L18N encoding of the system. |
void |
init(FilterConfig filterConfig)
|
Methods inherited from class com.opensymphony.sitemesh.webapp.SiteMeshFilter |
destroy, doFilter, initContentProcessor, initDecoratorSelector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplatePageFilter
public TemplatePageFilter()
init
public void init(FilterConfig filterConfig)
- Specified by:
init
in interface Filter
- Overrides:
init
in class com.opensymphony.sitemesh.webapp.SiteMeshFilter
applyDecorator
protected abstract void applyDecorator(com.opensymphony.module.sitemesh.Page page,
com.opensymphony.module.sitemesh.Decorator decorator,
HttpServletRequest req,
HttpServletResponse res,
ServletContext servletContext,
ActionContext ctx)
throws ServletException,
IOException
- Applies the decorator, using the relevent contexts
- Parameters:
page
- The pagedecorator
- The decoratorreq
- The servlet requestres
- The servlet responseservletContext
- The servlet contextctx
- The action context for this request, populated with the server state
- Throws:
ServletException
IOException
applyDecorator
protected void applyDecorator(com.opensymphony.module.sitemesh.Page page,
com.opensymphony.module.sitemesh.Decorator decorator,
HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Applies the decorator, creating the relevent contexts and delegating to
the extended applyDecorator().
- Parameters:
page
- The pagedecorator
- The decoratorreq
- The servlet requestres
- The servlet response
- Throws:
ServletException
IOException
getEncoding
protected String getEncoding()
- Gets the L18N encoding of the system. The default is UTF-8.