|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.engine.image.ImageCaptchaEngine
public abstract class ImageCaptchaEngine
Description: abstract base class for ImageCaptcha engines
.
| Field Summary | |
|---|---|
protected java.util.List |
factories
|
protected java.util.Random |
myRandom
|
| Constructor Summary | |
|---|---|
ImageCaptchaEngine()
|
|
| Method Summary | |
|---|---|
protected void |
checkNotNullOrEmpty(CaptchaFactory[] factories)
|
CaptchaFactory[] |
getFactories()
|
ImageCaptchaFactory |
getImageCaptchaFactory()
This method build a ImageCaptchaFactory. |
Captcha |
getNextCaptcha()
This return a new captcha. |
Captcha |
getNextCaptcha(java.util.Locale locale)
This return a new captcha. |
ImageCaptcha |
getNextImageCaptcha()
This method use an object parameter to build a CaptchaFactory. |
ImageCaptcha |
getNextImageCaptcha(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 |
| Field Detail |
|---|
protected java.util.List factories
protected java.util.Random myRandom
| Constructor Detail |
|---|
public ImageCaptchaEngine()
| Method Detail |
|---|
public ImageCaptchaFactory getImageCaptchaFactory()
public final ImageCaptcha getNextImageCaptcha()
public ImageCaptcha getNextImageCaptcha(java.util.Locale locale)
locale - the desired locale
public final Captcha getNextCaptcha()
CaptchaEngine
getNextCaptcha in interface CaptchaEnginepublic Captcha getNextCaptcha(java.util.Locale locale)
getNextCaptcha in interface CaptchaEnginelocale - the desired locale
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 engineprotected void checkNotNullOrEmpty(CaptchaFactory[] factories)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||