fr.paris.lutece.plugins.captcha.modules.jcaptcha.service
Class SimpleBufferedManageableCaptchaService

java.lang.Object
  extended by com.octo.captcha.service.AbstractCaptchaService
      extended by com.octo.captcha.service.AbstractManageableCaptchaService
          extended by com.octo.captcha.service.multitype.GenericManageableCaptchaService
              extended by fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.SimpleBufferedManageableCaptchaService
All Implemented Interfaces:
com.octo.captcha.service.AbstractManageableCaptchaServiceMBean, com.octo.captcha.service.CaptchaService, com.octo.captcha.service.image.ImageCaptchaService, com.octo.captcha.service.ManageableCaptchaService, com.octo.captcha.service.multitype.MultiTypeCaptchaService, com.octo.captcha.service.sound.SoundCaptchaService, com.octo.captcha.service.text.TextCaptchaService

public class SimpleBufferedManageableCaptchaService
extends com.octo.captcha.service.multitype.GenericManageableCaptchaService


Field Summary
 
Fields inherited from class com.octo.captcha.service.AbstractCaptchaService
engine, logger, store
 
Constructor Summary
SimpleBufferedManageableCaptchaService(com.octo.captcha.engine.CaptchaEngine engine, com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer container, int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize)
           
 
Method Summary
protected  com.octo.captcha.Captcha generateAndStoreCaptcha(Locale locale, String strID)
           
 com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer getContainer()
           
 void setContainer(com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer container)
           
 
Methods inherited from class com.octo.captcha.service.multitype.GenericManageableCaptchaService
getChallengeClone, getImageChallengeForID, getImageChallengeForID, getSoundChallengeForID, getSoundChallengeForID, getTextChallengeForID, getTextChallengeForID
 
Methods inherited from class com.octo.captcha.service.AbstractManageableCaptchaService
emptyCaptchaStore, garbageCollectCaptchaStore, garbageCollectCaptchaStore, getCaptchaEngineClass, getCaptchaStoreMaxSize, getCaptchaStoreSize, getCaptchaStoreSizeBeforeGarbageCollection, getEngine, getMinGuarantedStorageDelayInSeconds, getNumberOfCorrectResponses, getNumberOfGarbageCollectableCaptchas, getNumberOfGarbageCollectedCaptcha, getNumberOfGeneratedCaptchas, getNumberOfUncorrectResponses, isCaptchaStoreFull, isCaptchaStoreQuotaReached, setCaptchaEngine, setCaptchaEngineClass, setCaptchaStoreMaxSize, setCaptchaStoreSizeBeforeGarbageCollection, setMinGuarantedStorageDelayInSeconds, validateResponseForID
 
Methods inherited from class com.octo.captcha.service.AbstractCaptchaService
getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.octo.captcha.service.CaptchaService
getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID, validateResponseForID
 

Constructor Detail

SimpleBufferedManageableCaptchaService

public SimpleBufferedManageableCaptchaService(com.octo.captcha.engine.CaptchaEngine engine,
                                              com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer container,
                                              int minGuarantedStorageDelayInSeconds,
                                              int maxCaptchaStoreSize)
Parameters:
engine - the engine
container - the container
minGuarantedStorageDelayInSeconds - the min Guaranted Storage Delay In Seconds
maxCaptchaStoreSize - the max Captcha Store Size
Method Detail

generateAndStoreCaptcha

protected com.octo.captcha.Captcha generateAndStoreCaptcha(Locale locale,
                                                           String strID)
Overrides:
generateAndStoreCaptcha in class com.octo.captcha.service.AbstractManageableCaptchaService
Parameters:
locale - the locale
strID - the ID
Returns:
Captcha the Captcha

getContainer

public com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer getContainer()
Returns:
the container

setContainer

public void setContainer(com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer container)
Parameters:
container - the container


Copyright © 2014 Mairie de Paris. All Rights Reserved.