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) |
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.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 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.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()
protected void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)