com.liferay.portal.captcha.simplecaptcha
Class SimpleCaptchaImpl
java.lang.Object
com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.captcha.Captcha
- Direct Known Subclasses:
- ReCaptchaImpl
public class SimpleCaptchaImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.captcha.Captcha
View Source
- Author:
- Brian Wing Shun Chan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCaptchaImpl
public SimpleCaptchaImpl()
check
public void check(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.captcha.CaptchaTextException
- Specified by:
check
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
com.liferay.portal.kernel.captcha.CaptchaTextException
check
public void check(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaTextException
- Specified by:
check
in interface com.liferay.portal.kernel.captcha.Captcha
- Throws:
com.liferay.portal.kernel.captcha.CaptchaTextException
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)
- Specified by:
isEnabled
in interface com.liferay.portal.kernel.captcha.Captcha
isEnabled
public boolean isEnabled(javax.portlet.PortletRequest portletRequest)
- Specified by:
isEnabled
in interface com.liferay.portal.kernel.captcha.Captcha
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
getBackgroundProducer
protected nl.captcha.backgrounds.BackgroundProducer getBackgroundProducer()
getGimpyRenderer
protected nl.captcha.gimpy.GimpyRenderer getGimpyRenderer()
getHeight
protected int getHeight()
getNoiseProducer
protected nl.captcha.noise.NoiseProducer getNoiseProducer()
getSimpleCaptcha
protected nl.captcha.Captcha getSimpleCaptcha()
getTextProducer
protected nl.captcha.text.producer.TextProducer getTextProducer()
getWidth
protected int getWidth()
getWordRenderer
protected nl.captcha.text.renderer.WordRenderer getWordRenderer()
initBackgroundProducers
protected void initBackgroundProducers()
initGimpyRenderers
protected void initGimpyRenderers()
initNoiseProducers
protected void initNoiseProducers()
initTextProducers
protected void initTextProducers()
initWordRenderers
protected void initWordRenderers()