Package org.grails.web.servlet.mvc
Interface TokenResponseHandler
- All Known Implementing Classes:
AbstractTokenResponseHandler
public interface TokenResponseHandler
Invokes user code that handles double or invalid submits.
- Since:
- 1.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioninvalidToken(groovy.lang.Closure callable) Specify behavior in the event of an invalid token.booleanReturn whether the token was invalidbooleanReturn whether the response handle was invoked.
-
Field Details
-
INVALID_TOKEN_ATTRIBUTE
- See Also:
-
KEY
- See Also:
-
-
Method Details
-
invalidToken
Specify behavior in the event of an invalid token.- Parameters:
callable- The closure to invoke in the event of an invalid token- Returns:
- A Grails model or null
-
wasInvoked
boolean wasInvoked()Return whether the response handle was invoked.- Returns:
- true if it was
-
wasInvalidToken
boolean wasInvalidToken()Return whether the token was invalid- Returns:
- true if it was
-