com.octo.captcha.service.image
Class DefaultManageableImageCaptchaService
java.lang.Object
com.octo.captcha.service.AbstractCaptchaService
com.octo.captcha.service.AbstractManageableCaptchaService
com.octo.captcha.service.image.AbstractManageableImageCaptchaService
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 : - min guaranted delay : 180s
- max store size : 100000 captchas
- max store size before garbage collection : 75000
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.