|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javawebparts.filter.SessionInactivityFilter
This filter can test to see if a session has expired, and if it has can
redirect or forward to a page of your choice.
Init parameters are:
| Field Summary | |
private java.lang.String |
forwardTo
A path to forward to when access is denied. |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.util.ArrayList |
pathList
List of paths for filter functionality determination. |
private java.lang.String |
pathSpec
Whether pathList includes or excludes. |
private java.lang.String |
redirectTo
A path to redirect to when access is denied. |
| Constructor Summary | |
SessionInactivityFilter()
|
|
| Method Summary | |
void |
destroy()
Destroy. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Do filter's work. |
void |
init(javax.servlet.FilterConfig filterConfig)
Initialize this filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log log
private java.lang.String pathSpec
private java.util.ArrayList pathList
private java.lang.String redirectTo
private java.lang.String forwardTo
| Constructor Detail |
public SessionInactivityFilter()
| Method Detail |
public void destroy()
destroy in interface javax.servlet.Filter
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - The configuration information for this filter.
javax.servlet.ServletException - ServletException.
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
java.io.IOException
doFilter in interface javax.servlet.Filterrequest - The current request object.response - The current response object.filterChain - The current filter chain.
javax.servlet.ServletException - ServletException.
java.io.IOException - IOException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||