com.opensymphony.xwork2.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xwork Show documentation
Show all versions of xwork Show documentation
XWork is an command-pattern framework that is used to power WebWork
as well as other applications. XWork provides an Inversion of Control
container, a powerful expression language, data type conversion,
validation, and pluggable configuration.
/*
* 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;
}