com.octo.captcha.service.sound
Class DefaultManageableSoundCaptchaService

java.lang.Object
  extended by com.octo.captcha.service.AbstractCaptchaService
      extended by com.octo.captcha.service.AbstractManageableCaptchaService
          extended by com.octo.captcha.service.sound.AbstractManageableSoundCaptchaService
              extended by com.octo.captcha.service.sound.DefaultManageableSoundCaptchaService
All Implemented Interfaces:
AbstractManageableCaptchaServiceMBean, CaptchaService, ManageableCaptchaService, SoundCaptchaService

public class DefaultManageableSoundCaptchaService
extends AbstractManageableSoundCaptchaService
implements SoundCaptchaService

Default service implementation : use a FastHashMapCaptchaStore as captcha store, and a SpellerSoundCaptchaEngine

It is initialized with thoses default values :


Field Summary
 
Fields inherited from class com.octo.captcha.service.AbstractCaptchaService
engine, logger, store
 
Constructor Summary
DefaultManageableSoundCaptchaService()
          Construct a new SoundCaptchaService with a FastHashMapCaptchaStore and a SpellerSoundCaptchaEngine minGuarantedStorageDelayInSeconds 180s maxCaptchaStoreSize 100000 captchaStoreLoadBeforeGarbageCollection 75000
DefaultManageableSoundCaptchaService(CaptchaStore captchaStore, CaptchaEngine captchaEngine, int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection)
           
DefaultManageableSoundCaptchaService(int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection)
          Construct a new SoundCaptchaService with a FastHashMapCaptchaStore and a SpellerSoundCaptchaEngine
 
Method Summary
 
Methods inherited from class com.octo.captcha.service.sound.AbstractManageableSoundCaptchaService
getChallengeClone, getSoundChallengeForID, getSoundChallengeForID
 
Methods inherited from class com.octo.captcha.service.AbstractManageableCaptchaService
emptyCaptchaStore, garbageCollectCaptchaStore, garbageCollectCaptchaStore, generateAndStoreCaptcha, 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.sound.SoundCaptchaService
getSoundChallengeForID, getSoundChallengeForID
 
Methods inherited from interface com.octo.captcha.service.CaptchaService
getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID, validateResponseForID
 

Constructor Detail

DefaultManageableSoundCaptchaService

public DefaultManageableSoundCaptchaService(int minGuarantedStorageDelayInSeconds,
                                            int maxCaptchaStoreSize,
                                            int captchaStoreLoadBeforeGarbageCollection)
Construct a new SoundCaptchaService with a FastHashMapCaptchaStore and a SpellerSoundCaptchaEngine

Parameters:
minGuarantedStorageDelayInSeconds -
maxCaptchaStoreSize -
captchaStoreLoadBeforeGarbageCollection -

DefaultManageableSoundCaptchaService

public DefaultManageableSoundCaptchaService()
Construct a new SoundCaptchaService with a FastHashMapCaptchaStore and a SpellerSoundCaptchaEngine minGuarantedStorageDelayInSeconds 180s maxCaptchaStoreSize 100000 captchaStoreLoadBeforeGarbageCollection 75000


DefaultManageableSoundCaptchaService

public DefaultManageableSoundCaptchaService(CaptchaStore captchaStore,
                                            CaptchaEngine captchaEngine,
                                            int minGuarantedStorageDelayInSeconds,
                                            int maxCaptchaStoreSize,
                                            int captchaStoreLoadBeforeGarbageCollection)


Copyright 2003-2009 JCaptcha. All Rights Reserved.