com.sapportals.portal.prt.event
Interface IPortalRequestEventData


public interface IPortalRequestEventData

The IPortalComponentEventData represents a set of multi-valued attributes that are attached to a IPortalRequestEvent.


Method Summary
 void add(java.lang.String attribute, java.lang.String value)
          add an attribute with value.
 java.lang.String getAttribute(java.lang.String name)
          Return the value of an attributes Note: If the attribute is multi-valued, any one the values can be the result of a call to this method.
 java.lang.String[] getAttributeNames()
          Gets the attributes names as an array.
 java.util.Enumeration getAttributesEnumeration()
          Gets an Enumeration of attributes names.
 java.lang.String[] getAttributeValues(java.lang.String name)
          gets the attributes values associated to a specific name.
 java.util.Iterator getAttributeValuesIterator(java.lang.String name)
          Gets an iterator on the values associated to a name.
 void remove(java.lang.String attribute)
          remove an attribute with all values.
 void remove(java.lang.String attribute, java.lang.String value)
          remove an attribute/value combination from this event's data.
 java.lang.String toFormEncodedString()
          Gets this PortalComponentEventData as a Form Encoded String.
 

Method Detail

add

public void add(java.lang.String attribute,
                java.lang.String value)
add an attribute with value. Note: attributes can be multi-valued
Parameters:
attribute - The name of the attribute.
value - The value of the attribute to be added

remove

public void remove(java.lang.String attribute)
remove an attribute with all values.
Parameters:
attribute - The name of the attribute.

remove

public void remove(java.lang.String attribute,
                   java.lang.String value)
remove an attribute/value combination from this event's data.
Parameters:
attribute - The name of the attribute.
value - The value of the attribute to be removed.

getAttributesEnumeration

public java.util.Enumeration getAttributesEnumeration()
Gets an Enumeration of attributes names.
Returns:
An Enumeration of attribute names.

getAttributeNames

public java.lang.String[] getAttributeNames()
Gets the attributes names as an array.
Returns:
An array of attribute names.

getAttributeValues

public java.lang.String[] getAttributeValues(java.lang.String name)
gets the attributes values associated to a specific name.
Parameters:
name - The name of the queried attribute
Returns:
An array of values of an attribute.

getAttributeValuesIterator

public java.util.Iterator getAttributeValuesIterator(java.lang.String name)
Gets an iterator on the values associated to a name.
Parameters:
name - The name of the queried attribute
Returns:
An Iterator over the values of an attribute.

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Return the value of an attributes Note: If the attribute is multi-valued, any one the values can be the result of a call to this method.
Parameters:
name -  

toFormEncodedString

public java.lang.String toFormEncodedString()
Gets this PortalComponentEventData as a Form Encoded String. For example, if we have attributes a and b with value {"Hey You", "4"} for a and "go" for b we possibly get: "a=Hey%20You&a=4&b=go".