com.octo.captcha.engine
Class MockCaptchaEngine

java.lang.Object
  extended by com.octo.captcha.engine.MockCaptchaEngine
All Implemented Interfaces:
CaptchaEngine

public class MockCaptchaEngine
extends java.lang.Object
implements CaptchaEngine

Version:
1.0
Author:
Marc-Antoine Garrigue

Constructor Summary
MockCaptchaEngine()
           
 
Method Summary
 CaptchaFactory[] getFactories()
           
 Captcha getNextCaptcha()
          This return a new captcha.
 Captcha getNextCaptcha(java.util.Locale locale)
          This return a new captcha.
 void setFactories(CaptchaFactory[] factories)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCaptchaEngine

public MockCaptchaEngine()
Method Detail

getNextCaptcha

public Captcha getNextCaptcha()
This return a new captcha. It may be used directly.

Specified by:
getNextCaptcha in interface CaptchaEngine
Returns:
a new Captcha

getNextCaptcha

public Captcha getNextCaptcha(java.util.Locale locale)
This return a new captcha. It may be used directly.

Specified by:
getNextCaptcha in interface CaptchaEngine
Parameters:
locale - the desired locale
Returns:
a new Captcha

getFactories

public CaptchaFactory[] getFactories()
Specified by:
getFactories in interface CaptchaEngine
Returns:
captcha factories used by this engine

setFactories

public void setFactories(CaptchaFactory[] factories)
                  throws CaptchaEngineException
Specified by:
setFactories in interface CaptchaEngine
Parameters:
factories - new captcha factories for this engine
Throws:
CaptchaEngineException - if the factories are invalid for this engine


Copyright © 2003-2011 JCaptcha corp.. All Rights Reserved.