Liferay 7.0-ga1 portal-impl

com.liferay.portal.captcha.simplecaptcha
Class SimpleCaptchaImpl

java.lang.Object
  extended by com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
All Implemented Interfaces:
com.liferay.portal.kernel.captcha.Captcha
Direct Known Subclasses:
ReCaptchaImpl

public class SimpleCaptchaImpl
extends Object
implements com.liferay.portal.kernel.captcha.Captcha


Constructor Summary
SimpleCaptchaImpl()
           
 
Method Summary
 void check(javax.servlet.http.HttpServletRequest request)
           
 void check(PortletRequest portletRequest)
           
protected  nl.captcha.backgrounds.BackgroundProducer getBackgroundProducer()
           
protected  nl.captcha.gimpy.GimpyRenderer getGimpyRenderer()
           
protected  int getHeight()
           
protected  nl.captcha.noise.NoiseProducer getNoiseProducer()
           
protected  nl.captcha.Captcha getSimpleCaptcha()
           
 String getTaglibPath()
           
protected  nl.captcha.text.producer.TextProducer getTextProducer()
           
protected  int getWidth()
           
protected  nl.captcha.text.renderer.WordRenderer getWordRenderer()
           
protected  void incrementCounter(javax.servlet.http.HttpServletRequest request)
           
protected  Integer incrementCounter(Integer count)
           
protected  void incrementCounter(PortletRequest portletRequest)
           
protected  void initBackgroundProducers()
           
protected  void initGimpyRenderers()
           
protected  void initNoiseProducers()
           
protected  void initTextProducers()
           
protected  void initWordRenderers()
           
 boolean isEnabled(javax.servlet.http.HttpServletRequest request)
           
 boolean isEnabled(PortletRequest portletRequest)
           
protected  boolean isExceededMaxChallenges(javax.servlet.http.HttpServletRequest request)
           
protected  boolean isExceededMaxChallenges(Integer count)
           
protected  boolean isExceededMaxChallenges(PortletRequest portletRequest)
           
 void serveImage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void serveImage(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
           
protected  boolean validateChallenge(javax.servlet.http.HttpServletRequest request)
           
protected  boolean validateChallenge(PortletRequest portletRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCaptchaImpl

public SimpleCaptchaImpl()
Method Detail

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(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 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(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 IOException
Specified by:
serveImage in interface com.liferay.portal.kernel.captcha.Captcha
Throws:
IOException

serveImage

public void serveImage(ResourceRequest resourceRequest,
                       ResourceResponse resourceResponse)
                throws IOException
Specified by:
serveImage in interface com.liferay.portal.kernel.captcha.Captcha
Throws:
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()

incrementCounter

protected void incrementCounter(javax.servlet.http.HttpServletRequest request)

incrementCounter

protected Integer incrementCounter(Integer count)

incrementCounter

protected void incrementCounter(PortletRequest portletRequest)

initBackgroundProducers

protected void initBackgroundProducers()

initGimpyRenderers

protected void initGimpyRenderers()

initNoiseProducers

protected void initNoiseProducers()

initTextProducers

protected void initTextProducers()

initWordRenderers

protected void initWordRenderers()

isExceededMaxChallenges

protected boolean isExceededMaxChallenges(javax.servlet.http.HttpServletRequest request)

isExceededMaxChallenges

protected boolean isExceededMaxChallenges(Integer count)

isExceededMaxChallenges

protected boolean isExceededMaxChallenges(PortletRequest portletRequest)

validateChallenge

protected boolean validateChallenge(javax.servlet.http.HttpServletRequest request)
                             throws com.liferay.portal.kernel.captcha.CaptchaException
Throws:
com.liferay.portal.kernel.captcha.CaptchaException

validateChallenge

protected boolean validateChallenge(PortletRequest portletRequest)
                             throws com.liferay.portal.kernel.captcha.CaptchaException
Throws:
com.liferay.portal.kernel.captcha.CaptchaException

Liferay 7.0-ga1 portal-impl