com.gwtplatform.dispatch.server.actionvalidator
Class AbstractDefaultActionValidator
java.lang.Object
com.gwtplatform.dispatch.server.actionvalidator.AbstractDefaultActionValidator
- All Implemented Interfaces:
- ActionValidator
public class AbstractDefaultActionValidator
- extends Object
- implements ActionValidator
The default ActionValidator
implementation. It'll accept every action.
- Author:
- Christian Goudreau
Method Summary |
boolean |
isValid(Action<? extends Result> action)
Validate whether or not that Action can be executed at this time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDefaultActionValidator
public AbstractDefaultActionValidator()
isValid
public boolean isValid(Action<? extends Result> action)
- Description copied from interface:
ActionValidator
- Validate whether or not that
Action
can be executed at this time.
You can also throw an ActionException
if you want to fine grain why
the validator failed.
- Specified by:
isValid
in interface ActionValidator
- Parameters:
action
- The action that called this validator.
- Returns:
true
if the action can be executed, false
otherwise.
Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.