Package org.grails.web.servlet.mvc
Class AbstractTokenResponseHandler
java.lang.Object
org.grails.web.servlet.mvc.AbstractTokenResponseHandler
- All Implemented Interfaces:
TokenResponseHandler
Implements the behavior of wasInvoked in the TokenResponseHandler interface.
- Since:
- 1.1
- See Also:
-
Field Summary
Fields inherited from interface org.grails.web.servlet.mvc.TokenResponseHandler
INVALID_TOKEN_ATTRIBUTE, KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectinvalidToken(groovy.lang.Closure callable) Specify behavior in the event of an invalid token.protected abstract ObjectinvalidTokenInternal(groovy.lang.Closure callable) booleanReturn whether the token was invalidbooleanReturn whether the response handle was invoked.
-
Constructor Details
-
AbstractTokenResponseHandler
public AbstractTokenResponseHandler(boolean valid)
-
-
Method Details
-
invalidToken
Description copied from interface:TokenResponseHandlerSpecify behavior in the event of an invalid token.- Specified by:
invalidTokenin interfaceTokenResponseHandler- Parameters:
callable- The closure to invoke in the event of an invalid token- Returns:
- A Grails model or null
-
invalidTokenInternal
-
wasInvoked
public boolean wasInvoked()Description copied from interface:TokenResponseHandlerReturn whether the response handle was invoked.- Specified by:
wasInvokedin interfaceTokenResponseHandler- Returns:
- true if it was
-
wasInvalidToken
public boolean wasInvalidToken()Description copied from interface:TokenResponseHandlerReturn whether the token was invalid- Specified by:
wasInvalidTokenin interfaceTokenResponseHandler- Returns:
- true if it was
-