com.octo.captcha.image.gimpy
Class GimpyFactory

java.lang.Object
  extended by com.octo.captcha.image.ImageCaptchaFactory
      extended by 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.


Field Summary
static java.lang.String BUNDLE_QUESTION_KEY
           
 
Constructor Summary
GimpyFactory(WordGenerator generator, WordToImage word2image)
           
 
Method Summary
 ImageCaptcha getImageCaptcha()
          gimpies are ImageCaptcha
 ImageCaptcha getImageCaptcha(java.util.Locale locale)
          gimpies are ImageCaptcha
protected  java.lang.Integer getRandomLength()
           
 WordGenerator getWordGenerator()
           
 WordToImage getWordToImage()
           
 
Methods inherited from class com.octo.captcha.image.ImageCaptchaFactory
getCaptcha, getCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_QUESTION_KEY

public static final java.lang.String BUNDLE_QUESTION_KEY
Constructor Detail

GimpyFactory

public GimpyFactory(WordGenerator generator,
                    WordToImage word2image)
Method Detail

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.