net.java.slee.resource.diameter.base.events.avp
Interface ExtensionGroupedAvp

All Superinterfaces:
java.lang.Cloneable, DiameterAvp, GroupedAvp

public interface ExtensionGroupedAvp
extends GroupedAvp

An extension of the GroupedAvp interface to represent extension AVPs--those not defined by the Diameter RA being used.


Field Summary
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Method Summary
 DiameterAvp[] getExtensionAvps()
          Returns the set of extension AVPs.
 void setExtensionAvps(DiameterAvp[] avps)
          Sets the set of extension AVPs with all the values in the given array.
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
hasExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, stringValue
 

Method Detail

getExtensionAvps

DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the message. A return value of null implies that no extensions AVPs have been set.

Specified by:
getExtensionAvps in interface GroupedAvp
Returns:

setExtensionAvps

void setExtensionAvps(DiameterAvp[] avps)
                      throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setExtensionAvps in interface GroupedAvp
Throws:
AvpNotAllowedException - if an AVP is encountered of a type already known to this class (i.e. an AVP for which get/set methods already appear in this class)
java.lang.IllegalStateException - if setExtensionAvps has already been called


Copyright © 2008. All Rights Reserved.