javax.portlet.listener
Class PortletRequestAttributeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.portlet.listener.PortletRequestEvent
          extended by javax.portlet.listener.PortletRequestAttributeEvent
All Implemented Interfaces:
java.io.Serializable

public class PortletRequestAttributeEvent
extends PortletRequestEvent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PortletRequestAttributeEvent(PortletContext pc, PortletRequest request, java.lang.String name, java.lang.Object value)
          Construct a PortletRequestAttributeEvent from the given context for the given attribute name and attribute value.
 
Method Summary
 java.lang.String getName()
          Return the name of the attribute that changed on the PortletRequest.
 java.lang.Object getValue()
          Returns the value of the attribute that has been added removed or replaced.
 
Methods inherited from class javax.portlet.listener.PortletRequestEvent
getPortletContext, getPortletRequest
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortletRequestAttributeEvent

public PortletRequestAttributeEvent(PortletContext pc,
                                    PortletRequest request,
                                    java.lang.String name,
                                    java.lang.Object value)
Construct a PortletRequestAttributeEvent from the given context for the given attribute name and attribute value.

Parameters:
pc - portlet context
request - portlet request
name - attribute name
value - attribute value
Method Detail

getName

public java.lang.String getName()
Return the name of the attribute that changed on the PortletRequest.

Returns:
name of the changed request attribute.

getValue

public java.lang.Object getValue()
Returns the value of the attribute that has been added removed or replaced.

If the attribute was added, this is the value of the attribute.
If the attribute was removed, this is the value of the removed attribute.
If the attribute was replaced, this is the old value of the attribute.

Returns:
the value of the changed request attribute.