|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.module.sitemesh.filter.PageFilterWithoutSession
public class PageFilterWithoutSession
Main SiteMesh filter for applying Decorators to entire Pages.
| Field Summary |
|---|
| Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants |
|---|
DECORATOR, FILTER_APPLIED, PAGE, ROBOT, USING_STREAM |
| Constructor Summary | |
|---|---|
PageFilterWithoutSession()
|
|
| Method Summary | |
|---|---|
protected void |
applyDecorator(com.opensymphony.module.sitemesh.Page page,
com.opensymphony.module.sitemesh.Decorator decorator,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Apply Decorator to
Page and write to the response. |
void |
destroy()
Shutdown filter. |
void |
doFilter(javax.servlet.ServletRequest rq,
javax.servlet.ServletResponse rs,
javax.servlet.FilterChain chain)
Main method of the Filter. |
javax.servlet.FilterConfig |
getFilterConfig()
Deprecated. Not needed in final version of Servlet 2.3 API - replaced by init(). |
void |
init(javax.servlet.FilterConfig filterConfig)
Set FilterConfig, and get instance of DecoratorMapper. |
protected com.opensymphony.module.sitemesh.Page |
parsePage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Continue in filter-chain, writing all content to buffer and parsing into returned Page object. |
void |
setFilterConfig(javax.servlet.FilterConfig filterConfig)
Deprecated. Not needed in final version of Servlet 2.3 API - replaced by init(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageFilterWithoutSession()
| Method Detail |
|---|
public void doFilter(javax.servlet.ServletRequest rq,
javax.servlet.ServletResponse rs,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
Checks if the Filter has been applied this request. If not, parses the
page and applies Decorator (if
found).
doFilter in interface javax.servlet.Filterjava.io.IOException
javax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig filterConfig)
DecoratorMapper.
init in interface javax.servlet.Filterpublic javax.servlet.FilterConfig getFilterConfig()
public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
public void destroy()
destroy in interface javax.servlet.Filter
protected com.opensymphony.module.sitemesh.Page parsePage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
Page object. If
Page is not parseable, null is
returned.
java.io.IOException
javax.servlet.ServletException
protected void applyDecorator(com.opensymphony.module.sitemesh.Page page,
com.opensymphony.module.sitemesh.Decorator decorator,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
Decorator to
Page and write to the response.
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||