|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.web.AuthedFilter
public class AuthedFilter
Filter implementation to verify that requests are made as part of an authenticated session.
| Constructor Summary | |
|---|---|
AuthedFilter()
Default constructor |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Check the current session to see if it is an authenticated session. |
void |
init(javax.servlet.FilterConfig config)
Initialise this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthedFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
Read configuration properties.
init in interface javax.servlet.Filterconfig - Filter configuration.
javax.servlet.ServletException - if filter cannot be initialised.
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
java.io.IOException
The check is not performed if this is a request to access the login page.
doFilter in interface javax.servlet.Filterrequest - ServletRequestresponse - ServletResponsechain - FilterChain
javax.servlet.ServletException
java.io.IOExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||