01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork;
06:
07: import java.io.Serializable;
08:
09: /**
10: * All results (except for NONE) of an Action are mapped to a View implementation.
11: * Examples of Views might be:
12: * <ul>
13: * <li>SwingPanelView - pops up a new Swing panel</li>
14: * <li>ActionChainView - executes another action</li>
15: * <li>SerlvetRedirectView - redirects the HTTP response to a URL</li>
16: * <li>ServletDispatcherView - dispatches the HTTP response to a URL</li>
17: * </ul>
18: *
19: * @author plightbo
20: * @version $Revision: 861 $
21: */
22: public interface Result extends Serializable {
23:
24: /**
25: * Represents a generic interface for all action execution results, whether that be displaying a webpage, generating
26: * an email, sending a JMS message, etc.
27: */
28: public void execute(ActionInvocation invocation) throws Exception;
29: }
|