com.sun.rave.web.ui.component.util.event
Class SessionAttributeOutputType

java.lang.Object
  extended by com.sun.rave.web.ui.component.util.event.SessionAttributeOutputType
All Implemented Interfaces:
OutputType

public class SessionAttributeOutputType
extends java.lang.Object
implements OutputType

This class implements the OutputType interface to provide a way to get/set Output values from the Session attribute Map.


Constructor Summary
SessionAttributeOutputType()
           
 
Method Summary
 java.lang.Object getValue(HandlerContext context, IODescriptor outDesc, java.lang.String key)
           This method is responsible for retrieving the value of the Output from a Session attribute.
 void setValue(HandlerContext context, IODescriptor outDesc, java.lang.String key, java.lang.Object value)
           This method is responsible for setting the value of the Output to a Session attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionAttributeOutputType

public SessionAttributeOutputType()
Method Detail

getValue

public java.lang.Object getValue(HandlerContext context,
                                 IODescriptor outDesc,
                                 java.lang.String key)

This method is responsible for retrieving the value of the Output from a Session attribute. 'key' may be null, if this occurs, a default name will be provided. That name will follow the following format:

[handler-id]:[key]

Specified by:
getValue in interface OutputType
Parameters:
context - The HandlerContext
outDesc - The IODescriptor for this Output value in which to obtain the value
key - The optional 'key' to use when retrieving the value from the Session attribute Map.
Returns:
The requested value.

setValue

public void setValue(HandlerContext context,
                     IODescriptor outDesc,
                     java.lang.String key,
                     java.lang.Object value)

This method is responsible for setting the value of the Output to a Session attribute. 'key' may be null, in this case, a default name will be provided. That name will follow the following format:

[handler-id]:[key]

Specified by:
setValue in interface OutputType
Parameters:
context - The HandlerContext
outDesc - The IODescriptor for this Output value in which to obtain the value
key - The optional 'key' to use when setting the value into the Session attribute Map
value - The value to set