com.octo.captcha.sound.gimpy
Class GimpySoundFactory
java.lang.Object
com.octo.captcha.sound.SoundCaptchaFactory
com.octo.captcha.sound.gimpy.GimpySoundFactory
- All Implemented Interfaces:
- CaptchaFactory
public class GimpySoundFactory
- extends SoundCaptchaFactory
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
GimpySoundFactory
public GimpySoundFactory(WordGenerator thewordGenerator,
WordToSound theword2Sound)
- 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.