public class CaptchaUtil
extends java.lang.Object
Constructor and Description |
---|
CaptchaUtil() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext,
java.util.Map<java.lang.String,java.lang.Object> properties) |
static void |
check(javax.servlet.http.HttpServletRequest request) |
static void |
check(javax.portlet.PortletRequest portletRequest) |
protected void |
deactivate() |
static com.liferay.portal.kernel.captcha.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.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
static void |
setCaptcha(com.liferay.portal.kernel.captcha.Captcha captcha) |
public static void check(javax.servlet.http.HttpServletRequest request) throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaException
public static void check(javax.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaException
public static com.liferay.portal.kernel.captcha.Captcha getCaptcha()
public static java.lang.String getTaglibPath()
public static boolean isEnabled(javax.servlet.http.HttpServletRequest request)
public static boolean isEnabled(javax.portlet.PortletRequest portletRequest)
public static void serveImage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
public static void serveImage(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws java.io.IOException
java.io.IOException
public static void setCaptcha(com.liferay.portal.kernel.captcha.Captcha captcha) throws java.lang.Exception
java.lang.Exception
protected void activate(org.osgi.framework.BundleContext bundleContext, java.util.Map<java.lang.String,java.lang.Object> properties)
protected void deactivate()