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

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

public class RequestAttributeOutputType
extends java.lang.Object
implements OutputType

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


Constructor Summary
RequestAttributeOutputType()
           
 
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 Request 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 ServletRequest attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAttributeOutputType

public RequestAttributeOutputType()
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 Request 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 ServletRequest 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 ServletRequest 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 ServletRequest attribute Map
value - The value to set