public class LuteceGimpySoundFactory
extends com.octo.captcha.sound.SoundCaptchaFactory
Modifier and Type | Field and Description |
---|---|
static String |
BUNDLE_QUESTION_KEY |
static String |
MESSAGE_INVALID_EXCEPTION
The bundle question key for CaptchaQuestionHelper
|
Constructor and Description |
---|
LuteceGimpySoundFactory(com.octo.captcha.component.word.wordgenerator.WordGenerator thewordGenerator,
com.octo.captcha.component.sound.wordtosound.WordToSound theword2Sound)
Construct a GimpySoundFactory from a word generator component and a wordtosound component
|
LuteceGimpySoundFactory(com.octo.captcha.component.word.wordgenerator.WordGenerator wordGenerator,
com.octo.captcha.component.sound.wordtosound.WordToSound word2Sound,
com.octo.captcha.component.word.worddecorator.WordDecorator wordDecorator)
Construct a GimpySoundFactory from a word generator component and a wordtosound component
|
Modifier and Type | Method and Description |
---|---|
protected String |
getQuestion(Locale locale) |
protected Integer |
getRandomLength() |
com.octo.captcha.sound.SoundCaptcha |
getSoundCaptcha() |
com.octo.captcha.sound.SoundCaptcha |
getSoundCaptcha(Locale locale) |
com.octo.captcha.component.word.wordgenerator.WordGenerator |
getWordGenerator() |
com.octo.captcha.component.sound.wordtosound.WordToSound |
getWordToSound() |
public static final String MESSAGE_INVALID_EXCEPTION
public static final String BUNDLE_QUESTION_KEY
public LuteceGimpySoundFactory(com.octo.captcha.component.word.wordgenerator.WordGenerator thewordGenerator, com.octo.captcha.component.sound.wordtosound.WordToSound theword2Sound)
thewordGenerator
- componenttheword2Sound
- componentpublic LuteceGimpySoundFactory(com.octo.captcha.component.word.wordgenerator.WordGenerator wordGenerator, com.octo.captcha.component.sound.wordtosound.WordToSound word2Sound, com.octo.captcha.component.word.worddecorator.WordDecorator wordDecorator)
wordGenerator
- the wordGenerator componentword2Sound
- the word2Sound componentwordDecorator
- the word Decodatorpublic com.octo.captcha.component.sound.wordtosound.WordToSound getWordToSound()
public com.octo.captcha.component.word.wordgenerator.WordGenerator getWordGenerator()
public com.octo.captcha.sound.SoundCaptcha getSoundCaptcha()
getSoundCaptcha
in class com.octo.captcha.sound.SoundCaptchaFactory
public com.octo.captcha.sound.SoundCaptcha getSoundCaptcha(Locale locale)
getSoundCaptcha
in class com.octo.captcha.sound.SoundCaptchaFactory
locale
- the localeprotected String getQuestion(Locale locale)
locale
- the localeprotected Integer getRandomLength()
Copyright © 2018 City of Paris. All rights reserved.