jodd.madvoc.result
Class ActionResult

java.lang.Object
  extended by jodd.madvoc.result.ActionResult
Direct Known Subclasses:
ChainResult, HttpStatusResult, MoveResult, NoneResult, RawResult, ServletDispatcherResult, ServletRedirectResult, TextResult

public abstract class ActionResult
extends java.lang.Object

Action result for specified result type. Action results are singletons for the web application.


Field Summary
protected  boolean initialized
           
protected  java.lang.String type
           
 
Constructor Summary
protected ActionResult(java.lang.String type)
          Creates new action result.
 
Method Summary
 java.lang.String getType()
          Returns the type of this action result.
 void init()
          Invoked on result initialization.
 void initialized()
          Marks that interceptor is initialized.
 boolean isInitialized()
          Returns true if interceptor is initialized.
abstract  void render(ActionRequest actionRequest, java.lang.Object resultObject, java.lang.String resultValue, java.lang.String resultPath)
          Executes result on given action result value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected java.lang.String type

initialized

protected boolean initialized
Constructor Detail

ActionResult

protected ActionResult(java.lang.String type)
Creates new action result.

Method Detail

getType

public java.lang.String getType()
Returns the type of this action result.


render

public abstract void render(ActionRequest actionRequest,
                            java.lang.Object resultObject,
                            java.lang.String resultValue,
                            java.lang.String resultPath)
                     throws java.lang.Exception
Executes result on given action result value.

Parameters:
actionRequest - action request
resultObject - reference to action method result, may be null
resultValue - string representation of result, may be null
resultPath - result path
Throws:
java.lang.Exception

isInitialized

public final boolean isInitialized()
Returns true if interceptor is initialized.


initialized

public final void initialized()
Marks that interceptor is initialized.


init

public void init()
Invoked on result initialization.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010 Jodd Team