com.opensymphony.xwork2.Result Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2002-2007 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.xwork2;
import java.io.Serializable;
/**
* All results (except for Action.NONE
) of an {@link Action} are mapped to a View implementation.
*
* Examples of Views might be:
*
* - SwingPanelView - pops up a new Swing panel
* - ActionChainView - executes another action
* - SerlvetRedirectView - redirects the HTTP response to a URL
* - ServletDispatcherView - dispatches the HTTP response to a URL
*
*
* @author plightbo
*/
public interface Result extends Serializable {
/**
* Represents a generic interface for all action execution results.
* Whether that be displaying a webpage, generating an email, sending a JMS message, etc.
*
* @param invocation the invocation context.
* @throws Exception can be thrown.
*/
public void execute(ActionInvocation invocation) throws Exception;
}