net.sf.wfnm.web
Class NoMultipleSubmitFilter

java.lang.Object
  extended bynet.sf.wfnm.web.NoMultipleSubmitFilter
All Implemented Interfaces:
javax.servlet.Filter

public class NoMultipleSubmitFilter
extends Object
implements javax.servlet.Filter

This filter allows to avoid multiple form submits.

Version:
1.0.6
Author:
Maurizio Albari

Constructor Summary
NoMultipleSubmitFilter()
          Creates a new PageNotifierFilter object.
 
Method Summary
 void destroy()
          Destroy the filter.
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
          Filter the request in order to notify that a page has been reached.
 void init(javax.servlet.FilterConfig filterConfig)
          Initialize the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoMultipleSubmitFilter

public NoMultipleSubmitFilter()
Creates a new PageNotifierFilter object.

Method Detail

destroy

public void destroy()
Destroy the filter.

Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws IOException,
                     javax.servlet.ServletException
Filter the request in order to notify that a page has been reached.

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
servletRequest - the servlet request
servletResponse - the servlet response
filterChain - the filter chain
Throws:
IOException - if an input/output exception ocours
javax.servlet.ServletException - if a servlet exception ocours

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Initialize the filter.

Specified by:
init in interface javax.servlet.Filter
Parameters:
filterConfig - the filter configuration
Throws:
javax.servlet.ServletException - if a servlet exception ocours


Copyright © 2004-2005 Maurizio Albari@SourceForge.net. All Rights Reserved.