com.liferay.portal.kernel.captcha
Class CaptchaUtil
java.lang.Object
com.liferay.portal.kernel.captcha.CaptchaUtil
public class CaptchaUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
check(javax.servlet.http.HttpServletRequest request)
|
static void |
check(javax.portlet.PortletRequest portletRequest)
|
static Captcha |
getCaptcha()
|
static java.lang.String |
getTaglibPath()
|
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 |
CaptchaUtil
public CaptchaUtil()
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()
getTaglibPath
public static java.lang.String getTaglibPath()
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)