com.octo.captcha.module.servlet.image
Class SimpleImageCaptchaServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.octo.captcha.module.servlet.image.SimpleImageCaptchaServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SimpleImageCaptchaServlet
extends javax.servlet.http.HttpServlet
implements javax.servlet.Servlet

Author:
mag
See Also:
Serialized Form

Field Summary
static ImageCaptchaService service
           
 
Constructor Summary
SimpleImageCaptchaServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
static boolean validateResponse(javax.servlet.http.HttpServletRequest request, java.lang.String userCaptchaResponse)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Field Detail

service

public static ImageCaptchaService service
Constructor Detail

SimpleImageCaptchaServlet

public SimpleImageCaptchaServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
                     javax.servlet.http.HttpServletResponse httpServletResponse)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

validateResponse

public static boolean validateResponse(javax.servlet.http.HttpServletRequest request,
                                       java.lang.String userCaptchaResponse)


Copyright © 2003-2011 JCaptcha corp.. All Rights Reserved.