org.springframework.webflow.action
Class ActionResultExposer

java.lang.Object
  extended by org.springframework.webflow.action.ActionResultExposer
All Implemented Interfaces:
java.io.Serializable

public class ActionResultExposer
extends java.lang.Object
implements java.io.Serializable

Specifies how an action result value should be exposed to an executing flow. The return value is exposed as an attribute in a configured scope.

Author:
Keith Donald
See Also:
EvaluateAction, AbstractBeanInvokingAction, Serialized Form

Constructor Summary
ActionResultExposer(java.lang.String resultName, ScopeType resultScope)
          Creates a action result exposer
 
Method Summary
 void exposeResult(java.lang.Object result, RequestContext context)
          Expose given bean method return value in given flow execution request context.
 java.lang.String getResultName()
          Returns name of the attribute to index the return value with.
 ScopeType getResultScope()
          Returns the scope the attribute indexing the return value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionResultExposer

public ActionResultExposer(java.lang.String resultName,
                           ScopeType resultScope)
Creates a action result exposer

Parameters:
resultName - the result name
resultScope - the result scope
Method Detail

getResultName

public java.lang.String getResultName()
Returns name of the attribute to index the return value with.


getResultScope

public ScopeType getResultScope()
Returns the scope the attribute indexing the return value.


exposeResult

public void exposeResult(java.lang.Object result,
                         RequestContext context)
Expose given bean method return value in given flow execution request context.

Parameters:
result - the return value
context - the request context

toString

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


Copyright © 2004-2007. All Rights Reserved.