org.codehaus.groovy.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
Author:
Graeme Rocher

Field Summary
static String KEY
           
 
Method Summary
 Object invalidToken(groovy.lang.Closure callable)
          Specify behavior in the event of an invalid token.
 boolean wasInvalidToken()
          Return whether the token was invalid
 boolean wasInvoked()
          Return whether the response handle was invoked.
 

Field Detail

KEY

static final String KEY
See Also:
Constant Field Values
Method Detail

invalidToken

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