|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.engine.sound.SoundCaptchaEngine
public abstract class SoundCaptchaEngine
Description: abstract base class for SoundCaptcha engines
.
| Field Summary | |
|---|---|
protected java.util.List |
factories
|
protected java.util.Random |
myRandom
|
| Constructor Summary | |
|---|---|
SoundCaptchaEngine()
|
|
| Method Summary | |
|---|---|
protected void |
checkNotNullOrEmpty(CaptchaFactory[] factories)
|
CaptchaFactory[] |
getFactories()
|
Captcha |
getNextCaptcha()
This return a new captcha. |
Captcha |
getNextCaptcha(java.util.Locale locale)
This return a new captcha. |
SoundCaptcha |
getNextSoundCaptcha()
This method build a SoundCaptchaFactory. |
SoundCaptcha |
getNextSoundCaptcha(java.util.Locale locale)
This method build a SoundCaptchaFactory. |
SoundCaptchaFactory |
getSoundCaptchaFactory()
This method build a SoundCaptchaFactory. |
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 SoundCaptchaEngine()
| Method Detail |
|---|
public final Captcha getNextCaptcha()
getNextCaptcha in interface CaptchaEnginepublic final 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)
public SoundCaptchaFactory getSoundCaptchaFactory()
public SoundCaptcha getNextSoundCaptcha()
public SoundCaptcha getNextSoundCaptcha(java.util.Locale locale)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||