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 CaptchaTextException
- Throws:
CaptchaTextException
check
public static void check(PortletRequest portletRequest)
throws CaptchaTextException
- Throws:
CaptchaTextException
getCaptcha
public static Captcha getCaptcha()
getTaglibPath
public static String getTaglibPath()
isEnabled
public static boolean isEnabled(javax.servlet.http.HttpServletRequest request)
isEnabled
public static boolean isEnabled(PortletRequest portletRequest)
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)