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 Modifier and Type Field Description static java.lang.String
INVALID_TOKEN_ATTRIBUTE
static java.lang.String
KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
invalidToken(groovy.lang.Closure callable)
Specify behavior in the event of an invalid token.boolean
wasInvalidToken()
Return whether the token was invalidboolean
wasInvoked()
Return whether the response handle was invoked.
-
-
-
Field Detail
-
INVALID_TOKEN_ATTRIBUTE
static final java.lang.String INVALID_TOKEN_ATTRIBUTE
- See Also:
- Constant Field Values
-
KEY
static final java.lang.String KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
invalidToken
java.lang.Object invalidToken(groovy.lang.Closure callable)
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
-
-