com.atlassian.bamboo.servlet
Class BambooCaptchaServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.atlassian.bamboo.servlet.BambooCaptchaServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class BambooCaptchaServlet
extends javax.servlet.http.HttpServlet

Servlet that writes out captcha challenges (images). It associates challenge/response with http request session id, so to validate user response you have to extract current session id from active servlet context. See SignupUser.validate() for usage example, and for more details see http://jcaptcha.octo.com/confluence/display/general/5+minutes+application+integration+tutorial

See Also:
Serialized Form

Constructor Summary
BambooCaptchaServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
 com.octo.captcha.service.image.ImageCaptchaService getImageCaptchaService()
           
 void init(javax.servlet.ServletConfig servletConfig)
           
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooCaptchaServlet

public BambooCaptchaServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

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

getImageCaptchaService

public com.octo.captcha.service.image.ImageCaptchaService getImageCaptchaService()


Copyright © 2011 Atlassian. All Rights Reserved.