com.liferay.portal.captcha
Class CaptchaImpl
java.lang.Object
com.liferay.portal.captcha.CaptchaImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.captcha.Captcha
public class CaptchaImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.captcha.Captcha
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
check(javax.servlet.http.HttpServletRequest request)
|
void |
check(javax.portlet.PortletRequest portletRequest)
|
java.lang.String |
getTaglibPath()
|
boolean |
isEnabled(javax.servlet.http.HttpServletRequest request)
|
boolean |
isEnabled(javax.portlet.PortletRequest portletRequest)
|
void |
serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
serveImage(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
|
void |
setCaptcha(com.liferay.portal.kernel.captcha.Captcha captcha)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaptchaImpl
public CaptchaImpl()
check
public void check(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.captcha.CaptchaException
- Specified by:
check
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
com.liferay.portal.kernel.captcha.CaptchaException
check
public void check(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
- Specified by:
check
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
com.liferay.portal.kernel.captcha.CaptchaException
getTaglibPath
public java.lang.String getTaglibPath()
- Specified by:
getTaglibPath
in interface com.liferay.portal.kernel.captcha.Captcha
isEnabled
public boolean isEnabled(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.captcha.CaptchaException
- Specified by:
isEnabled
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
com.liferay.portal.kernel.captcha.CaptchaException
isEnabled
public boolean isEnabled(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
- Specified by:
isEnabled
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
com.liferay.portal.kernel.captcha.CaptchaException
serveImage
public void serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Specified by:
serveImage
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
java.io.IOException
serveImage
public void serveImage(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse)
throws java.io.IOException
- Specified by:
serveImage
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
java.io.IOException
setCaptcha
public void setCaptcha(com.liferay.portal.kernel.captcha.Captcha captcha)