Class CaptchaUtil

java.lang.Object
com.liferay.captcha.util.CaptchaUtil

public class CaptchaUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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