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 final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    invalidToken(groovy.lang.Closure callable)
    Specify behavior in the event of an invalid token.
    boolean
    Return whether the token was invalid
    boolean
    Return whether the response handle was invoked.
  • Field Details

  • Method Details

    • 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