Class LuteceGimpySoundFactory
- java.lang.Object
-
- com.octo.captcha.sound.SoundCaptchaFactory
-
- fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.LuteceGimpySoundFactory
-
- All Implemented Interfaces:
com.octo.captcha.CaptchaFactory
public class LuteceGimpySoundFactory extends com.octo.captcha.sound.SoundCaptchaFactory- Author:
- lutecer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUNDLE_QUESTION_KEYstatic java.lang.StringMESSAGE_INVALID_EXCEPTIONThe bundle question key for CaptchaQuestionHelper
-
Constructor Summary
Constructors Constructor 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 componentLuteceGimpySoundFactory(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.octo.captcha.sound.SoundCaptchagetSoundCaptcha()com.octo.captcha.sound.SoundCaptchagetSoundCaptcha(java.util.Locale locale)com.octo.captcha.component.word.wordgenerator.WordGeneratorgetWordGenerator()com.octo.captcha.component.sound.wordtosound.WordToSoundgetWordToSound()
-
-
-
Field Detail
-
MESSAGE_INVALID_EXCEPTION
public static final java.lang.String MESSAGE_INVALID_EXCEPTION
The bundle question key for CaptchaQuestionHelper- See Also:
- Constant Field Values
-
BUNDLE_QUESTION_KEY
public static final java.lang.String BUNDLE_QUESTION_KEY
-
-
Constructor Detail
-
LuteceGimpySoundFactory
public 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- Parameters:
thewordGenerator- componenttheword2Sound- component
-
LuteceGimpySoundFactory
public 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- Parameters:
wordGenerator- the wordGenerator componentword2Sound- the word2Sound componentwordDecorator- the word Decodator
-
-
Method Detail
-
getWordToSound
public com.octo.captcha.component.sound.wordtosound.WordToSound getWordToSound()
- Returns:
- the word to sound
-
getWordGenerator
public com.octo.captcha.component.word.wordgenerator.WordGenerator getWordGenerator()
- Returns:
- the word generator
-
getSoundCaptcha
public com.octo.captcha.sound.SoundCaptcha getSoundCaptcha()
- Specified by:
getSoundCaptchain classcom.octo.captcha.sound.SoundCaptchaFactory- Returns:
- a Sound Captcha
-
getSoundCaptcha
public com.octo.captcha.sound.SoundCaptcha getSoundCaptcha(java.util.Locale locale)
- Specified by:
getSoundCaptchain classcom.octo.captcha.sound.SoundCaptchaFactory- Parameters:
locale- the locale- Returns:
- a localized sound captcha
-
-