Package com.liferay.captcha.util
Class CaptchaUtil
java.lang.Object
com.liferay.captcha.util.CaptchaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
check
(javax.portlet.PortletRequest portletRequest) static void
check
(javax.servlet.http.HttpServletRequest httpServletRequest) static void
enforceCaptcha
(javax.portlet.PortletRequest portletRequest) static void
enforceCaptcha
(javax.servlet.http.HttpServletRequest httpServletRequest) static com.liferay.portal.kernel.captcha.Captcha
static boolean
isEnabled
(javax.portlet.PortletRequest portletRequest) static boolean
isEnabled
(javax.servlet.http.HttpServletRequest httpServletRequest) static void
serveImage
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
-
Constructor Details
-
CaptchaUtil
public CaptchaUtil()
-
-
Method Details
-
check
public static void check(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException - Throws:
com.liferay.portal.kernel.captcha.CaptchaException
-
check
public static void check(javax.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException - Throws:
com.liferay.portal.kernel.captcha.CaptchaException
-
enforceCaptcha
public static void enforceCaptcha(javax.servlet.http.HttpServletRequest httpServletRequest) -
enforceCaptcha
public static void enforceCaptcha(javax.portlet.PortletRequest portletRequest) -
getCaptcha
public static com.liferay.portal.kernel.captcha.Captcha getCaptcha() -
isEnabled
public static boolean isEnabled(javax.servlet.http.HttpServletRequest httpServletRequest) -
isEnabled
public static boolean isEnabled(javax.portlet.PortletRequest portletRequest) -
serveImage
public static void serveImage(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException - Throws:
IOException
-