public interface ActionResult<T>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResultName()
Returns the name of this action result.
|
java.lang.Class<T> |
getResultValueType()
Returns type of result value, passed to the
render method
and defined by generics. |
void |
init()
Initializes the result.
|
void |
render(ActionRequest actionRequest,
T resultValue)
Renders result on given action result value.
|
java.lang.String getResultName()
null for results
that does not need to be found using string name identification;
i.e. when action does not return a string result.java.lang.Class<T> getResultValueType()
render method
and defined by generics. Returns null when this action result does not need
to be registered for result value type (eg when used in @Action annotation).void render(ActionRequest actionRequest, T resultValue) throws java.lang.Exception
actionRequest - action requestresultValue - action method result, may be nulljava.lang.Exceptionvoid init()
Copyright © 2003-2013 Jodd Team