org.codehaus.groovy.grails.web.servlet.mvc
Class AbstractTokenResponseHandler
java.lang.Object
org.codehaus.groovy.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
- Author:
- Graeme Rocher
- See Also:
TokenResponseHandler.wasInvoked()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTokenResponseHandler
public AbstractTokenResponseHandler(boolean valid)
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