pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.captcha
Class AbstractCaptchaResponse

java.lang.Object
  extended by org.torweg.pulse.util.captcha.AbstractCaptchaResponse
Direct Known Subclasses:
ReCaptchaResponse

public abstract class AbstractCaptchaResponse
extends java.lang.Object

Interface defining a response of a captcha-validation-request.

Version:
$Revision: 1407 $
Author:
Daniel Dietz

Constructor Summary
AbstractCaptchaResponse()
           
 
Method Summary
abstract  java.lang.String getErrorMessage()
          Returns the error-message if the captcha has not passed validation.
abstract  boolean isValid()
          Returns whether the captcha has passed validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCaptchaResponse

public AbstractCaptchaResponse()
Method Detail

isValid

public abstract boolean isValid()
Returns whether the captcha has passed validation.

Returns:
true if the captcha has passed validation, false otherwise

getErrorMessage

public abstract java.lang.String getErrorMessage()
Returns the error-message if the captcha has not passed validation.

Returns:
the error-message