|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManageableCaptchaService
Management interface for the CaptchaService
interface.
Method Summary | |
---|---|
void |
emptyCaptchaStore()
Empty the Store |
void |
garbageCollectCaptchaStore()
Garbage collect the captcha store, means all old capthca (captcha in the store wich has been stored more than the MinGuarantedStorageDelayInSecond |
java.lang.String |
getCaptchaEngineClass()
Get the fully qualified class name of the concrete CaptchaEngine used by the service. |
int |
getCaptchaStoreMaxSize()
|
int |
getCaptchaStoreSize()
Get the curent size of the captcha store |
int |
getCaptchaStoreSizeBeforeGarbageCollection()
|
CaptchaEngine |
getEngine()
|
int |
getMinGuarantedStorageDelayInSeconds()
Get the minimum delay (in seconds) a client can be assured that a captcha generated by the service can be retrieved and a response to its challenge tested |
long |
getNumberOfCorrectResponses()
Get the number of correct responses to captcha challenges since the service is up. |
int |
getNumberOfGarbageCollectableCaptchas()
Get the number of captchas that can be garbage collected in the captcha store |
long |
getNumberOfGarbageCollectedCaptcha()
Get the number of captcha garbage collected since the service is up WARNING : this value won't be significant if the real number is > Long.MAX_VALUE |
long |
getNumberOfGeneratedCaptchas()
Get the number of captcha generated since the service is up WARNING : this value won't be significant if the real number is > Long.MAX_VALUE |
long |
getNumberOfUncorrectResponses()
Get the number of uncorrect responses to captcha challenges since the service is up. |
void |
setCaptchaEngine(CaptchaEngine engine)
Updates the engine served by this service |
void |
setCaptchaEngineClass(java.lang.String theClassName)
Set the fully qualified class name of the concrete CaptchaEngine used by the service |
void |
setCaptchaStoreMaxSize(int size)
This max size is used by the service : it will throw a CaptchaServiceException if the store is full when a client ask for a captcha. |
void |
setCaptchaStoreSizeBeforeGarbageCollection(int captchaStoreSizeBeforeGarbageCollection)
max captchaStore size before garbage collection of the store |
void |
setMinGuarantedStorageDelayInSeconds(int theMinGuarantedStorageDelayInSeconds)
set the minimum delay (in seconds)a client can be assured that a captcha generated by the service can be retrieved and a response to its challenge tested |
Methods inherited from interface com.octo.captcha.service.CaptchaService |
---|
getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID, validateResponseForID |
Method Detail |
---|
java.lang.String getCaptchaEngineClass()
void setCaptchaEngineClass(java.lang.String theClassName) throws java.lang.IllegalArgumentException
theClassName
- the fully qualified class name of the CaptchaEngine used by the service
java.lang.IllegalArgumentException
- if className can't be used as the service CaptchaEngine, either because it can't
be instanciated by the service or it is not a ImageCaptchaEngine concrete
class.CaptchaEngine getEngine()
void setCaptchaEngine(CaptchaEngine engine)
engine
- int getMinGuarantedStorageDelayInSeconds()
void setMinGuarantedStorageDelayInSeconds(int theMinGuarantedStorageDelayInSeconds)
theMinGuarantedStorageDelayInSeconds
- the minimum guaranted delaylong getNumberOfGeneratedCaptchas()
long getNumberOfCorrectResponses()
long getNumberOfUncorrectResponses()
int getCaptchaStoreSize()
int getNumberOfGarbageCollectableCaptchas()
long getNumberOfGarbageCollectedCaptcha()
void setCaptchaStoreMaxSize(int size)
int getCaptchaStoreMaxSize()
void garbageCollectCaptchaStore()
void emptyCaptchaStore()
int getCaptchaStoreSizeBeforeGarbageCollection()
void setCaptchaStoreSizeBeforeGarbageCollection(int captchaStoreSizeBeforeGarbageCollection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |