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 java.lang.Object
- implements TokenResponseHandler
Implements the behavior of wasInvoked in the TokenResponseHandler interface.
- Since:
- 1.1
- See Also:
TokenResponseHandler.wasInvoked()
|
Method Summary |
java.lang.Object |
invalidToken(groovy.lang.Closure callable)
Specify behavior in the event of an invalid token. |
protected abstract java.lang.Object |
invalidTokenInternal(groovy.lang.Closure callable)
|
boolean |
wasInvalidToken()
Return whether the token was invalid |
boolean |
wasInvoked()
Return whether the response handle was invoked. |
| 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 java.lang.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 java.lang.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