Class SoundCaptchaFilter
- java.lang.Object
-
- fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.SoundCaptchaFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class SoundCaptchaFilter extends java.lang.Object implements javax.servlet.FilterGeneration 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.
-
-
Constructor Summary
Constructors Constructor Description SoundCaptchaFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy the filtervoiddoFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain filterChain)Apply the filtervoidinit(javax.servlet.FilterConfig config)
-
-
-
Method Detail
-
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 java.io.IOException, javax.servlet.ServletExceptionApply the filter- Specified by:
doFilterin interfacejavax.servlet.Filter- Parameters:
req- The HTTP requestres- The HTTP responsefilterChain- The Filter Chain- Throws:
java.io.IOException- If an error occuredjavax.servlet.ServletException- If an error occured
-
destroy
public void destroy()
Destroy the filter- Specified by:
destroyin interfacejavax.servlet.Filter
-
-