|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.UserEquipmentInfo
public class UserEquipmentInfo
UserEquipmentInfo is a lightweight representation of the Grouped [User-Equipment-Info] Avp. It contains the identity and capability of the terminal a subscriber is using to connect to the network.
The [User-Equipment-Info] Avp is defined in RFC 4006 - Diameter Credit-Control Application.
Constructor Summary | |
---|---|
UserEquipmentInfo()
Constructs an empty UserEquipmentInfo object representing the [User-Equipment-Info] Avp. |
|
UserEquipmentInfo(java.util.List<Avp> avps)
Constructs a UserEquipmentInfo object representing the Grouped [User-Equipment-Info] Avp. |
Method Summary | |
---|---|
java.lang.Integer |
getUserEquipmentInfoType()
Gets the value corresponding to the payload of the {User-Equipment-Info-Type} Avp. |
byte[] |
getUserEquipmentInfoValue()
Gets the value corresponding to the payload of the {User-Equipment-Info-Value} Avp. |
void |
setUserEquipmentInfoType(java.lang.Integer userEquipmentInfoType)
Sets the value corresponding to the payload of the {User-Equipment-Info-Type} Avp. |
void |
setUserEquipmentInfoValue(byte[] userEquipmentInfoValue)
Sets the value corresponding to the payload of the {User-Equipment-Info-Value} Avp. |
Avp |
toAvp()
Transforms a UserEquipmentInfo object into a Grouped [User-Equipment-Info] Avp. |
void |
validate()
Validates the members of the UserEquipmentInfo object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserEquipmentInfo()
public UserEquipmentInfo(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 UserEquipmentInfo, 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
[User-Equipment-Info] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Integer getUserEquipmentInfoType()
public void setUserEquipmentInfoType(java.lang.Integer userEquipmentInfoType)
userEquipmentInfoType
- the value corresponding to the payload of the {User-Equipment-Info-Type} Avp.public byte[] getUserEquipmentInfoValue()
public void setUserEquipmentInfoValue(byte[] userEquipmentInfoValue)
userEquipmentInfoValue
- the value corresponding to the payload of the {User-Equipment-Info-Value} Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of UserEquipmentInfo is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of UserEquipmentInfo will be transformed into Avps nested inside of the [User-Equipment-Info] Avp.
AvpTransformationException
- if a member of UserEquipmentInfo is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |