com.octo.captcha.service.image
Class DefaultManageableImageCaptchaService

java.lang.Object
  extended by com.octo.captcha.service.AbstractCaptchaService
      extended by com.octo.captcha.service.AbstractManageableCaptchaService
          extended by com.octo.captcha.service.image.AbstractManageableImageCaptchaService
              extended by com.octo.captcha.service.image.DefaultManageableImageCaptchaService
All Implemented Interfaces:
AbstractManageableCaptchaServiceMBean, CaptchaService, ImageCaptchaService, ManageableCaptchaService

public class DefaultManageableImageCaptchaService
extends AbstractManageableImageCaptchaService
implements ImageCaptchaService

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

It is initialized with thoses default values :


Field Summary
 
Fields inherited from class com.octo.captcha.service.AbstractCaptchaService
engine, logger, store
 
Constructor Summary
DefaultManageableImageCaptchaService()
          Construct a new ImageCaptchaService with a FastHashMapCaptchaStore and a DefaultGimpyEngine minGuarantedStorageDelayInSeconds = 180s maxCaptchaStoreSize = 100000 captchaStoreLoadBeforeGarbageCollection=75000
DefaultManageableImageCaptchaService(CaptchaStore captchaStore, CaptchaEngine captchaEngine, int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection)
           
DefaultManageableImageCaptchaService(int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection)
          Construct a new ImageCaptchaService with a FastHashMapCaptchaStore and a DefaultGimpyEngine
 
Method Summary
 
Methods inherited from class com.octo.captcha.service.image.AbstractManageableImageCaptchaService
getChallengeClone, getImageChallengeForID, getImageChallengeForID
 
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.image.ImageCaptchaService
getImageChallengeForID, getImageChallengeForID
 
Methods inherited from interface com.octo.captcha.service.CaptchaService
getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID, validateResponseForID
 

Constructor Detail

DefaultManageableImageCaptchaService

public DefaultManageableImageCaptchaService()
Construct a new ImageCaptchaService with a FastHashMapCaptchaStore and a DefaultGimpyEngine minGuarantedStorageDelayInSeconds = 180s maxCaptchaStoreSize = 100000 captchaStoreLoadBeforeGarbageCollection=75000


DefaultManageableImageCaptchaService

public DefaultManageableImageCaptchaService(int minGuarantedStorageDelayInSeconds,
                                            int maxCaptchaStoreSize,
                                            int captchaStoreLoadBeforeGarbageCollection)
Construct a new ImageCaptchaService with a FastHashMapCaptchaStore and a DefaultGimpyEngine

Parameters:
minGuarantedStorageDelayInSeconds -
maxCaptchaStoreSize -
captchaStoreLoadBeforeGarbageCollection -

DefaultManageableImageCaptchaService

public DefaultManageableImageCaptchaService(CaptchaStore captchaStore,
                                            CaptchaEngine captchaEngine,
                                            int minGuarantedStorageDelayInSeconds,
                                            int maxCaptchaStoreSize,
                                            int captchaStoreLoadBeforeGarbageCollection)
Parameters:
captchaStore -
captchaEngine -
minGuarantedStorageDelayInSeconds -
maxCaptchaStoreSize -
captchaStoreLoadBeforeGarbageCollection -


Copyright 2003-2009 JCaptcha. All Rights Reserved.