org.shept.services.jcaptcha
Class ImageCaptchaServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.shept.services.jcaptcha.ImageCaptchaServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.springframework.context.ApplicationContextAware

public class ImageCaptchaServlet
extends javax.servlet.http.HttpServlet
implements org.springframework.context.ApplicationContextAware

This class is copied and modified from the JCaptcha example

See Also:
http://forge.octo.com/jcaptcha/confluence/display/general/5+minutes+application+integration+tutorial, Serialized Form

Field Summary
private  org.springframework.context.ApplicationContext ctx
           
private static long serialVersionUID
           
 
Constructor Summary
ImageCaptchaServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
 void init(javax.servlet.ServletConfig servletConfig)
           
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
 
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
 

Field Detail

ctx

private org.springframework.context.ApplicationContext ctx

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ImageCaptchaServlet

public ImageCaptchaServlet()
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

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

doGet

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


Copyright © 2011. All Rights Reserved.