com.octo.captcha.image.gimpy
Class GimpyFactory
java.lang.Object
com.octo.captcha.image.ImageCaptchaFactory
com.octo.captcha.image.gimpy.GimpyFactory
- All Implemented Interfaces:
- CaptchaFactory
public class GimpyFactory
- extends 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.
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
GimpyFactory
public GimpyFactory(WordGenerator generator,
WordToImage word2image)
getImageCaptcha
public ImageCaptcha getImageCaptcha()
- gimpies are ImageCaptcha
- Specified by:
getImageCaptcha
in class ImageCaptchaFactory
- Returns:
- the image captcha with default locale
getWordToImage
public WordToImage getWordToImage()
getWordGenerator
public WordGenerator getWordGenerator()
getImageCaptcha
public ImageCaptcha getImageCaptcha(java.util.Locale locale)
- gimpies are ImageCaptcha
- Specified by:
getImageCaptcha
in class ImageCaptchaFactory
- Returns:
- a pixCaptcha with the question :"spell the word"
getRandomLength
protected java.lang.Integer getRandomLength()
Copyright 2003-2009 JCaptcha. All Rights Reserved.