|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.captcha.AbstractCaptchaResponse
org.torweg.pulse.util.captcha.ReCaptchaResponse
public class ReCaptchaResponse
A response-wrapper for the captcha-validation-request-response of the recaptcha-library.
| Constructor Summary | |
|---|---|
ReCaptchaResponse()
Default constructor. |
|
ReCaptchaResponse(net.tanesha.recaptcha.ReCaptchaResponse response)
Creates a new ReCaptchaResponse from a given
net.tanesha.recaptcha.ReCaptchaResponse. |
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage()
Returns the error-message if the captcha has not passed validation. |
boolean |
isValid()
Returns whether the captcha has passed validation. |
protected void |
setErrorMessage(java.lang.String errorMsg)
Sets the error-message of the ReCaptchaResponse. |
protected void |
setValid(boolean isValid)
Sets the validity-state of the ReCaptchaResponse. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReCaptchaResponse()
public ReCaptchaResponse(net.tanesha.recaptcha.ReCaptchaResponse response)
ReCaptchaResponse from a given
net.tanesha.recaptcha.ReCaptchaResponse.
response - a net.tanesha.recaptcha.ReCaptchaResponse| Method Detail |
|---|
protected final void setValid(boolean isValid)
ReCaptchaResponse.
isValid - the validity-state to setpublic final boolean isValid()
isValid in class AbstractCaptchaResponsetrue if the captcha has passed validation,
false otherwiseprotected final void setErrorMessage(java.lang.String errorMsg)
ReCaptchaResponse.
errorMsg - the error-message to setpublic final java.lang.String getErrorMessage()
getErrorMessage in class AbstractCaptchaResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||