|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.octo.captcha.MockCaptcha
public class MockCaptcha
Field Summary | |
---|---|
static java.lang.String |
CHALLENGE
|
static java.lang.String |
QUESTION
|
Constructor Summary | |
---|---|
MockCaptcha(java.util.Locale locale)
|
Method Summary | |
---|---|
void |
disposeChallenge()
Dispose the challenge, once this method is call the getChallenge method will return null. It has been added for technical reasons : a captcha is always used in a two step fashion First submit the challenge, and then wait until the response arrives. It had been asked to have a method to dispose the challenge that is no longer used after being dipslayed. |
java.lang.Object |
getChallenge()
Accerssor for the questionned challenge. |
java.lang.String |
getQuestion()
Accessor captcha question. |
java.lang.Boolean |
hasGetChalengeBeenCalled()
This method should return true if the getChalenge method has been called (has been added in order to properly manage the captcha state. |
java.lang.Boolean |
validateResponse(java.lang.Object response)
Validation routine for the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String QUESTION
public static final java.lang.String CHALLENGE
Constructor Detail |
---|
public MockCaptcha(java.util.Locale locale)
Method Detail |
---|
public java.lang.String getQuestion()
getQuestion
in interface Captcha
public java.lang.Object getChallenge()
getChallenge
in interface Captcha
public java.lang.Boolean validateResponse(java.lang.Object response)
validateResponse
in interface Captcha
response
- to the question concerning the chalenge
public void disposeChallenge()
disposeChallenge
in interface Captcha
public java.lang.Boolean hasGetChalengeBeenCalled()
hasGetChalengeBeenCalled
in interface Captcha
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |