|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CaptchaEngine
CaptchaEngine is the main interface from an application point of view : it uses CapchaFactories in order to return new captchas.
It has thes reponsibilty of creating CatpchaFactory instances and to provide an easy way to retrieve captchas. Sub classes may implement container services around capcthas as, for example, Captchas pooling, serialization, and so.
Method Summary | |
---|---|
CaptchaFactory[] |
getFactories()
|
Captcha |
getNextCaptcha()
This return a new captcha. |
Captcha |
getNextCaptcha(java.util.Locale locale)
This return a new captcha. |
void |
setFactories(CaptchaFactory[] factories)
|
Method Detail |
---|
Captcha getNextCaptcha()
Captcha getNextCaptcha(java.util.Locale locale)
locale
- the desired locale
CaptchaFactory[] getFactories()
void setFactories(CaptchaFactory[] factories) throws CaptchaEngineException
factories
- new captcha factories for this engine
CaptchaEngineException
- if the factories are invalid for this engine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |