com.octo.captcha.sound.speller
Class SpellerSoundFactory
java.lang.Object
com.octo.captcha.sound.SoundCaptchaFactory
com.octo.captcha.sound.speller.SpellerSoundFactory
- All Implemented Interfaces:
- CaptchaFactory
public class SpellerSoundFactory
- extends SoundCaptchaFactory
Factory for SpellerSound
Field Summary |
static java.lang.String |
BUNDLE_QUESTION_KEY
The bundle question key for CaptchaQuestionHelper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUNDLE_QUESTION_KEY
public static final java.lang.String BUNDLE_QUESTION_KEY
- The bundle question key for CaptchaQuestionHelper
SpellerSoundFactory
public SpellerSoundFactory(WordGenerator wordGenerator,
WordToSound word2Sound,
SpellerWordDecorator wordDecorator)
- Construct a GimpySoundFactory from a word generator component and a wordtosound component
- Parameters:
thewordGenerator
- componenttheword2Sound
- component
getWordToSound
public WordToSound getWordToSound()
getWordGenerator
public WordGenerator getWordGenerator()
getSoundCaptcha
public SoundCaptcha getSoundCaptcha()
- Description copied from class:
SoundCaptchaFactory
- this method builds a sound capctha.
- Specified by:
getSoundCaptcha
in class SoundCaptchaFactory
- Returns:
- a Sound Captcha
getSoundCaptcha
public SoundCaptcha getSoundCaptcha(java.util.Locale locale)
- Description copied from class:
SoundCaptchaFactory
- this method builds a localized sound capctha.
- Specified by:
getSoundCaptcha
in class SoundCaptchaFactory
- Parameters:
locale
- the locale
- Returns:
- a localized sound captcha
getQuestion
protected java.lang.String getQuestion(java.util.Locale locale)
getRandomLength
protected java.lang.Integer getRandomLength()
Copyright 2003-2009 JCaptcha. All Rights Reserved.