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.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SoundCaptchaFilter

      public SoundCaptchaFilter()
  • Method Details

    • 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 request
      res - The HTTP response
      filterChain - 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