com.octo.captcha
Interface CaptchaFactory

All Known Implementing Classes:
FishEyeFactory, GimpyFactory, GimpySoundFactory, ImageCaptchaFactory, MathCaptchaFactory, SoundCaptchaFactory, SpellerSoundFactory, SpellFindCaptchaFactory, TextCaptchaFactory

public interface CaptchaFactory

Interface for the CAPTCHA factories. Class implementing this interface has the responsability to build the Captcha. A captcha factory has the reponsability to build the challenge of a captcha and to pass it to the captcha constructor. Defines two methods to build and retrieve a captcha. A no paramterer method and a localized method.


Method Summary
 Captcha getCaptcha()
          builds a captcha
 Captcha getCaptcha(java.util.Locale locale)
          build Localized captcha (don't forget those captcha are for human beings!)
 

Method Detail

getCaptcha

Captcha getCaptcha()
builds a captcha

Returns:
a captcha

getCaptcha

Captcha getCaptcha(java.util.Locale locale)
build Localized captcha (don't forget those captcha are for human beings!)

Parameters:
locale - the locale
Returns:
a captcha corresponding to the locale


Copyright 2003-2009 JCaptcha. All Rights Reserved.