org.apache.tiles.web
Class TilesDecorationFilter
java.lang.Object
org.apache.tiles.web.TilesDecorationFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class TilesDecorationFilter
- extends java.lang.Object
- implements javax.servlet.Filter
Decoration Filter. Intercepts all requests and decorates them
with the configured definition.
For example, given the following config:
Tiles Decoration Filter
org.apache.tiles.web.TilesDecorationFilter
definition
test.definition
attribute-name
body
Tiles Decoration Filter
/testdecorationfilter.jsp
REQUEST
The filter will intercept all requests to the indicated url pattern
store the initial request path as the "body" component attribute
and then render the "test.definition" definition.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TilesDecorationFilter
public TilesDecorationFilter()
getFilterConfig
public javax.servlet.FilterConfig getFilterConfig()
getServletContext
public javax.servlet.ServletContext getServletContext()
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
parseAlternateDefinitions
protected java.util.Map<java.lang.String,java.lang.String> parseAlternateDefinitions()
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain filterChain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException