com.octo.captcha.sound.gimpy
Class GimpySoundFactory

java.lang.Object
  extended by com.octo.captcha.sound.SoundCaptchaFactory
      extended by com.octo.captcha.sound.gimpy.GimpySoundFactory
All Implemented Interfaces:
CaptchaFactory

public class GimpySoundFactory
extends SoundCaptchaFactory


Field Summary
static java.lang.String BUNDLE_QUESTION_KEY
          The bundle question key for CaptchaQuestionHelper
 
Constructor Summary
GimpySoundFactory(WordGenerator thewordGenerator, WordToSound theword2Sound)
          Construct a GimpySoundFactory from a word generator component and a wordtosound component
 
Method Summary
protected  java.lang.String getQuestion(java.util.Locale locale)
           
protected  java.lang.Integer getRandomLength()
           
 SoundCaptcha getSoundCaptcha()
          this method builds a sound capctha.
 SoundCaptcha getSoundCaptcha(java.util.Locale locale)
          this method builds a localized sound capctha.
 WordGenerator getWordGenerator()
           
 WordToSound getWordToSound()
           
 
Methods inherited from class com.octo.captcha.sound.SoundCaptchaFactory
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
The bundle question key for CaptchaQuestionHelper

Constructor Detail

GimpySoundFactory

public GimpySoundFactory(WordGenerator thewordGenerator,
                         WordToSound theword2Sound)
Construct a GimpySoundFactory from a word generator component and a wordtosound component

Parameters:
thewordGenerator - component
theword2Sound - component
Method Detail

getWordToSound

public WordToSound getWordToSound()

getWordGenerator

public WordGenerator getWordGenerator()

getSoundCaptcha

public SoundCaptcha getSoundCaptcha()
Description copied from class: SoundCaptchaFactory
this method builds a sound capctha.

Specified by:
getSoundCaptcha in class SoundCaptchaFactory
Returns:
a Sound Captcha

getSoundCaptcha

public SoundCaptcha getSoundCaptcha(java.util.Locale locale)
Description copied from class: SoundCaptchaFactory
this method builds a localized sound capctha.

Specified by:
getSoundCaptcha in class SoundCaptchaFactory
Parameters:
locale - the locale
Returns:
a localized sound captcha

getQuestion

protected java.lang.String getQuestion(java.util.Locale locale)

getRandomLength

protected java.lang.Integer getRandomLength()


Copyright 2003-2009 JCaptcha. All Rights Reserved.