ActionResult.java :  » Development » jodd » jodd » madvoc » result » Java Open Source

Java Open Source » Development » jodd 
jodd » jodd » madvoc » result » ActionResult.java
// Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.

package jodd.madvoc.result;

import jodd.madvoc.ActionRequest;

/**
 * Action result for specified result name.
 * Action results are singletons for the web application.
 */
public abstract class ActionResult {

  protected String name;

  /**
   * Creates new action result.
   */
  protected ActionResult(String name) {
    this.name = name;
  }

  /**
   * Returns the name of this action result.
   */
  public String getName() {
    return name;
  }


  /**
   * Executes result on given action result value.
   */
  public abstract void execute(ActionRequest request, String resultValue) throws Exception;

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.