net.sf.easyweb4j.controller
Class ActionResult
java.lang.Object
net.sf.easyweb4j.controller.ActionResult
- All Implemented Interfaces:
- Serializable
public class ActionResult
- extends Object
- implements Serializable
Represents the result of invocation of an action for a particular request.
This class should not be instantiated by the application. However, it may be
read from the controller in unit test cases.
- Author:
- Chandra Sekar S
- See Also:
- Serialized Form
Nested Class Summary |
static class |
ActionResult.NavigationType
Enum of possible navigations after the execution of action method of the
controller. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionResult
public ActionResult(ActionResult.NavigationType navigationType,
String controller,
String view,
String id,
boolean renderLayout)
- Constructor to initialize the result of the action.
- Parameters:
navigationType
- The type of navigation to be performed by the dispatcher.controller
- Controller to which response is to be redirected or whose view
is to be used.view
- The view to be rendered or the action to which response is to
be redirected.id
- Object ID to be passed upon redirection.renderLayout
- Whether the layout should be rendered or not for the view.
ActionResult
public ActionResult(ResponseHandler responseHandler)
- Initializes an action result which generates a raw response to the
request.
- Parameters:
responseHandler
- The ResponseHandler
which handles the response.
getNavigationType
public ActionResult.NavigationType getNavigationType()
getController
public String getController()
getView
public String getView()
getId
public String getId()
isRenderLayout
public boolean isRenderLayout()
getResponseHandler
public ResponseHandler getResponseHandler()
Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.