jodd.madvoc.result
Class TextResult

java.lang.Object
  extended by jodd.madvoc.result.ActionResult
      extended by jodd.madvoc.result.TextResult

public class TextResult
extends ActionResult

Text result returns a result value, i.e. a string. Useful for JSON responses, when resulting string is built in the action.


Field Summary
static java.lang.String NAME
           
 
Fields inherited from class jodd.madvoc.result.ActionResult
initialized, type
 
Constructor Summary
TextResult()
           
 
Method Summary
 void render(ActionRequest actionRequest, java.lang.Object resultObject, java.lang.String resultValue, java.lang.String resultPath)
          Executes result on given action result value.
 
Methods inherited from class jodd.madvoc.result.ActionResult
getType, init, initialized, isInitialized, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

TextResult

public TextResult()
Method Detail

render

public void render(ActionRequest actionRequest,
                   java.lang.Object resultObject,
                   java.lang.String resultValue,
                   java.lang.String resultPath)
            throws java.lang.Exception
Description copied from class: ActionResult
Executes result on given action result value.

Specified by:
render in class ActionResult
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


Copyright © 2003-2011 Jodd Team