Class SoundCaptchaFilter
java.lang.Object
fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.SoundCaptchaFilter
- All Implemented Interfaces:
javax.servlet.Filter
Generation captcha class
This class invok captcha service from applicationContext and get a challenge. The challenge response temp stored in service map, with user session id
key.
this servlet throw generated sound, wav formatted.
this servlet throw generated sound, wav formatted.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SoundCaptchaFilter
public SoundCaptchaFilter()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException Apply the filter- Specified by:
doFilterin interfacejavax.servlet.Filter- Parameters:
req- The HTTP requestres- The HTTP responsefilterChain- The Filter Chain- Throws:
IOException- If an error occuredjavax.servlet.ServletException- If an error occured
-
destroy
public void destroy()Destroy the filter- Specified by:
destroyin interfacejavax.servlet.Filter
-