Package org.deltava.beans.system
Class CAPTCHAResult
java.lang.Object
org.deltava.beans.system.CAPTCHAResult
- All Implemented Interfaces:
Serializable
A bean to store Google reCAPTCHA validation responses.
- Since:
- 9.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(String msg) Adds an error message.Returns the CAPTCHA challenge time.Returns the site host name.boolean
Returns if the challenge was successful.Returns any error/status messages.void
Updates the date/time of the challenge.void
setHostName
(String host) Updates the site host name.
-
Constructor Details
-
CAPTCHAResult
public CAPTCHAResult(boolean isSuccess) Creates the bean.- Parameters:
isSuccess
- TRUE if successful, otherwise FALSE
-
-
Method Details
-
getIsSuccess
public boolean getIsSuccess()Returns if the challenge was successful.- Returns:
- TRUE if successful, otherwise FALSE
-
getHostName
-
getChallengeTime
-
getMessages
Returns any error/status messages.- Returns:
- a Collection of messages
-
setHostName
Updates the site host name.- Parameters:
host
- the site host name
-
setChallengeTime
Updates the date/time of the challenge.- Parameters:
dt
- the date/time
-
addMessage
-