Class LuteceGimpyImageFactory
java.lang.Object
com.octo.captcha.image.ImageCaptchaFactory
fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.image.LuteceGimpyImageFactory
- All Implemented Interfaces:
com.octo.captcha.CaptchaFactory
public class LuteceGimpyImageFactory
extends com.octo.captcha.image.ImageCaptchaFactory
Factories for Gimpies. Built on top of WordGenerator and WordToImage. It uses thoses interfaces to build an ImageCaptha answered by a String and for which
the question is : Spell the word.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLuteceGimpyImageFactory(com.octo.captcha.component.word.wordgenerator.WordGenerator generator, com.octo.captcha.component.image.wordtoimage.WordToImage word2image) -
Method Summary
Modifier and TypeMethodDescriptioncom.octo.captcha.image.ImageCaptchagimpies are ImageCaptchacom.octo.captcha.image.ImageCaptchagetImageCaptcha(Locale locale) gimpies are ImageCaptchacom.octo.captcha.component.word.wordgenerator.WordGeneratorcom.octo.captcha.component.image.wordtoimage.WordToImageMethods inherited from class com.octo.captcha.image.ImageCaptchaFactory
getCaptcha, getCaptcha
-
Field Details
-
BUNDLE_QUESTION_KEY
-
-
Constructor Details
-
LuteceGimpyImageFactory
public LuteceGimpyImageFactory(com.octo.captcha.component.word.wordgenerator.WordGenerator generator, com.octo.captcha.component.image.wordtoimage.WordToImage word2image) - Parameters:
generator- the generatorword2image- the word to image
-
-
Method Details
-
getImageCaptcha
public com.octo.captcha.image.ImageCaptcha getImageCaptcha()gimpies are ImageCaptcha- Specified by:
getImageCaptchain classcom.octo.captcha.image.ImageCaptchaFactory- Returns:
- the image captcha with default locale
-
getWordToImage
public com.octo.captcha.component.image.wordtoimage.WordToImage getWordToImage()- Returns:
- the word to the image
-
getWordGenerator
public com.octo.captcha.component.word.wordgenerator.WordGenerator getWordGenerator()- Returns:
- the word generator
-
getImageCaptcha
gimpies are ImageCaptcha- Specified by:
getImageCaptchain classcom.octo.captcha.image.ImageCaptchaFactory- Parameters:
locale- the locale- Returns:
- a pixCaptcha with the question :"spell the word"
-