|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.web.SyncTokenFilter
public class SyncTokenFilter
Filter implementation to ensure that no duplicate form submissions occur.
Constructor Summary | |
---|---|
SyncTokenFilter()
Default constructor |
Method Summary | |
---|---|
void |
destroy()
Destroy |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Verify that the token value for the submitted form has changed. |
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 SyncTokenFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
config
- 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
doFilter
in interface javax.servlet.Filter
request
- ServletRequestresponse
- ServletResponsechain
- FilterChain
javax.servlet.ServletException
java.io.IOException
public void destroy()
destroy
in interface javax.servlet.Filter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |