|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.engine.GenericCaptchaEngine
public class GenericCaptchaEngine
Generic captcha engine, use it as default.
| Constructor Summary | |
|---|---|
GenericCaptchaEngine(CaptchaFactory[] factories)
Default constructor : takes an array of ImageCaptchaFactories. |
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericCaptchaEngine(CaptchaFactory[] factories)
| Method Detail |
|---|
public CaptchaFactory[] getFactories()
getFactories in interface CaptchaEngine
public void setFactories(CaptchaFactory[] factories)
throws CaptchaEngineException
setFactories in interface CaptchaEnginefactories - new captcha factories for this engine
CaptchaEngineException - if the factories are invalid for this enginepublic Captcha getNextCaptcha()
getNextCaptcha in interface CaptchaEnginepublic Captcha getNextCaptcha(java.util.Locale locale)
getNextCaptcha in interface CaptchaEnginelocale - the desired locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||