com.liferay.portal.kernel.captcha
Class CaptchaUtil
java.lang.Object
com.liferay.portal.kernel.captcha.CaptchaUtil
public class CaptchaUtil
- extends Object
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 CaptchaException
- Throws:
CaptchaException
check
public static void check(PortletRequest portletRequest)
throws CaptchaException
- Throws:
CaptchaException
getCaptcha
public static Captcha getCaptcha()
getTaglibPath
public static String getTaglibPath()
isEnabled
public static boolean isEnabled(javax.servlet.http.HttpServletRequest request)
throws CaptchaException
- Throws:
CaptchaException
isEnabled
public static boolean isEnabled(PortletRequest portletRequest)
throws CaptchaException
- Throws:
CaptchaException
serveImage
public static void serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
serveImage
public static void serveImage(PortletRequest portletRequest,
PortletResponse portletResponse)
throws IOException
- Throws:
IOException
setCaptcha
public void setCaptcha(Captcha captcha)