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 httpServletRequest) |
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 httpServletRequest) |
static boolean |
isEnabled(javax.portlet.PortletRequest portletRequest) |
protected void |
modified(java.util.Map<java.lang.String,java.lang.Object> properties) |
static void |
serveImage(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
static void |
serveImage(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
static void |
setCaptcha(com.liferay.portal.kernel.captcha.Captcha captcha) |
protected void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin) |
public static void check(javax.servlet.http.HttpServletRequest httpServletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaExceptionpublic static void check(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaExceptionpublic static com.liferay.portal.kernel.captcha.Captcha getCaptcha()
public static java.lang.String getTaglibPath()
public static boolean isEnabled(javax.servlet.http.HttpServletRequest httpServletRequest)
public static boolean isEnabled(javax.portlet.PortletRequest portletRequest)
public static void serveImage(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException
java.io.IOExceptionpublic static void serveImage(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse)
throws java.io.IOException
java.io.IOExceptionpublic static void setCaptcha(com.liferay.portal.kernel.captcha.Captcha captcha)
throws java.lang.Exception
java.lang.Exceptionprotected void activate(org.osgi.framework.BundleContext bundleContext,
java.util.Map<java.lang.String,java.lang.Object> properties)
protected void deactivate()
protected void modified(java.util.Map<java.lang.String,java.lang.Object> properties)
protected void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)