fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound
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 Object
- implements 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.
Method Summary |
void |
destroy()
Destroy the filter |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain filterChain)
Apply the filter |
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoundCaptchaFilter
public SoundCaptchaFilter()
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
-
- Specified by:
init
in interface javax.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:
doFilter
in interface javax.servlet.Filter
- Parameters:
req
- The HTTP requestres
- The HTTP responsefilterChain
- The Filter Chain
- Throws:
IOException
- If an error occured
javax.servlet.ServletException
- If an error occured
destroy
public void destroy()
- Destroy the filter
- Specified by:
destroy
in interface javax.servlet.Filter
Copyright © 2014 Mairie de Paris. All Rights Reserved.