|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.RecipientAddress
public class RecipientAddress
RecipientAddress is a lightweight representation of the Grouped [Recipient-Address] Avp. It identifies the recipient of a MM.
The [Recipient-Address] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
RecipientAddress()
Constructs an empty RecipientAddress object representing the [Recipient-Address] Avp. |
|
RecipientAddress(java.util.List<Avp> avps)
Constructs a RecipientAddress object representing the Grouped [Recipient-Address] Avp. |
Method Summary | |
---|---|
java.lang.String |
getAddressData()
Gets the value corresponding to the payload of the [Address-Data] Avp. |
AddressDomain |
getAddressDomain()
Gets the value corresponding to the payload of the [Address-Domain] Avp. |
java.lang.Integer |
getAddresseeType()
Gets the value corresponding to the payload of the [Addressee-Type] Avp. |
java.lang.Integer |
getAddressType()
Gets the value corresponding to the payload of the [Address-Type] Avp. |
void |
setAddressData(java.lang.String addressData)
Sets the value corresponding to the payload of the [Address-Data] Avp. |
void |
setAddressDomain(AddressDomain addressDomain)
Sets the value corresponding to the payload of the [Address-Domain] Avp. |
void |
setAddresseeType(java.lang.Integer addresseeType)
Sets the value corresponding to the payload of the [Addressee-Type] Avp. |
void |
setAddressType(java.lang.Integer addressType)
Sets the value corresponding to the payload of the [Address-Type] Avp. |
Avp |
toAvp()
Transforms a RecipientAddress object into a Grouped [Recipient-Address] Avp. |
void |
validate()
Validates the members of the RecipientAddress object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecipientAddress()
public RecipientAddress(java.util.List<Avp> avps) throws AvpTransformationException
The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of RecipientAddress, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.
avps
- a list of Avps that can appear in the Grouped
[Recipient-Address] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.String getAddressData()
public void setAddressData(java.lang.String addressData)
addressData
- the value corresponding to the payload of the [Address-Data] Avp.public AddressDomain getAddressDomain()
public void setAddressDomain(AddressDomain addressDomain)
addressDomain
- the value corresponding to the payload of the [Address-Domain] Avp.public java.lang.Integer getAddressType()
public void setAddressType(java.lang.Integer addressType)
addressType
- the value corresponding to the payload of the [Address-Type] Avp.public java.lang.Integer getAddresseeType()
public void setAddresseeType(java.lang.Integer addresseeType)
addresseeType
- the value corresponding to the payload of the [Addressee-Type] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of RecipientAddress is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of RecipientAddress will be transformed into Avps nested inside of the [Recipient-Address] Avp.
AvpTransformationException
- if a member of RecipientAddress is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |