com.liferay.portal.kernel.captcha
Class CaptchaUtil

java.lang.Object
  extended by com.liferay.portal.kernel.captcha.CaptchaUtil

public class CaptchaUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
CaptchaUtil()
           
 
Method Summary
static void check(javax.servlet.http.HttpServletRequest request)
           
static void check(javax.portlet.PortletRequest portletRequest)
           
static Captcha getCaptcha()
           
static boolean isEnabled(javax.servlet.http.HttpServletRequest request)
           
static boolean isEnabled(javax.portlet.PortletRequest portletRequest)
           
static void serveImage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static void serveImage(javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse)
           
 void setCaptcha(Captcha captcha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptchaUtil

public CaptchaUtil()
Method Detail

check

public static void check(javax.servlet.http.HttpServletRequest request)
                  throws CaptchaTextException
Throws:
CaptchaTextException

check

public static void check(javax.portlet.PortletRequest portletRequest)
                  throws CaptchaTextException
Throws:
CaptchaTextException

getCaptcha

public static Captcha getCaptcha()

isEnabled

public static boolean isEnabled(javax.servlet.http.HttpServletRequest request)

isEnabled

public static boolean isEnabled(javax.portlet.PortletRequest portletRequest)

serveImage

public static void serveImage(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws java.io.IOException
Throws:
java.io.IOException

serveImage

public static void serveImage(javax.portlet.PortletRequest portletRequest,
                              javax.portlet.PortletResponse portletResponse)
                       throws java.io.IOException
Throws:
java.io.IOException

setCaptcha

public void setCaptcha(Captcha captcha)