Class AbstractTokenResponseHandler

java.lang.Object
org.grails.web.servlet.mvc.AbstractTokenResponseHandler
All Implemented Interfaces:
TokenResponseHandler

public abstract class AbstractTokenResponseHandler extends Object implements TokenResponseHandler
Implements the behavior of wasInvoked in the TokenResponseHandler interface.
Since:
1.1
See Also:
  • Constructor Details

    • AbstractTokenResponseHandler

      public AbstractTokenResponseHandler(boolean valid)
  • Method Details

    • invalidToken

      public final Object invalidToken(groovy.lang.Closure callable)
      Description copied from interface: TokenResponseHandler
      Specify behavior in the event of an invalid token.
      Specified by:
      invalidToken in interface TokenResponseHandler
      Parameters:
      callable - The closure to invoke in the event of an invalid token
      Returns:
      A Grails model or null
    • invalidTokenInternal

      protected abstract Object invalidTokenInternal(groovy.lang.Closure callable)
    • wasInvoked

      public boolean wasInvoked()
      Description copied from interface: TokenResponseHandler
      Return whether the response handle was invoked.
      Specified by:
      wasInvoked in interface TokenResponseHandler
      Returns:
      true if it was
    • wasInvalidToken

      public boolean wasInvalidToken()
      Description copied from interface: TokenResponseHandler
      Return whether the token was invalid
      Specified by:
      wasInvalidToken in interface TokenResponseHandler
      Returns:
      true if it was