|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.RequestedServiceUnit
public class RequestedServiceUnit
RequestedServiceUnit is a lightweight representation of the Grouped [Requested-Service-Unit] Avp. It contains the amount of units requested by the credit-control client.
The [Requested-Service-Unit] Avp is defined in RFC 4006 - Diameter Credit-Control Application.
Constructor Summary | |
---|---|
RequestedServiceUnit()
Constructs an empty RequestedServiceUnit object representing the [Requested-Service-Unit] Avp. |
|
RequestedServiceUnit(java.util.List<Avp> avps)
Constructs a RequestedServiceUnit object representing the Grouped [Requested-Service-Unit] Avp. |
Method Summary | |
---|---|
java.lang.Long |
getCcInputOctets()
Gets the value corresponding to the payload of the [CC-Input-Octets] Avp. |
java.lang.Long |
getCcOutputOctets()
Gets the value corresponding to the payload of the [CC-Output-Octets] Avp. |
java.lang.Long |
getCcServiceSpecificUnits()
Gets the value corresponding to the payload of the [CC-Service-Specific-Units] Avp. |
java.lang.Integer |
getCcTime()
Gets the value corresponding to the payload of the [CC-Time] Avp. |
java.lang.Long |
getCcTotalOctets()
Gets the value corresponding to the payload of the [CC-Total-Octets] Avp. |
void |
setCcInputOctets(java.lang.Long ccInputOctets)
Sets the value corresponding to the payload of the [CC-Input-Octets] Avp. |
void |
setCcOutputOctets(java.lang.Long ccOutputOctets)
Sets the value corresponding to the payload of the [CC-Output-Octets] Avp. |
void |
setCcServiceSpecificUnits(java.lang.Long ccServiceSpecificUnits)
Sets the value corresponding to the payload of the [CC-Service-Specific-Units] Avp. |
void |
setCcTime(java.lang.Integer ccTime)
Sets the value corresponding to the payload of the [CC-Time] Avp. |
void |
setCcTotalOctets(java.lang.Long ccTotalOctets)
Sets the value corresponding to the payload of the [CC-Total-Octets] Avp. |
Avp |
toAvp()
Transforms a RequestedServiceUnit object into a Grouped [Requested-Service-Unit] Avp. |
void |
validate()
Validates the members of the RequestedServiceUnit object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestedServiceUnit()
public RequestedServiceUnit(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 RequestedServiceUnit, 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
[Requested-Service-Unit] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Long getCcInputOctets()
public void setCcInputOctets(java.lang.Long ccInputOctets)
ccInputOctets
- the value corresponding to the payload of the [CC-Input-Octets] Avp.public java.lang.Long getCcOutputOctets()
public void setCcOutputOctets(java.lang.Long ccOutputOctets)
ccOutputOctets
- the value corresponding to the payload of the [CC-Output-Octets] Avp.public java.lang.Long getCcServiceSpecificUnits()
public void setCcServiceSpecificUnits(java.lang.Long ccServiceSpecificUnits)
ccServiceSpecificUnits
- the value corresponding to the payload of the [CC-Service-Specific-Units] Avp.public java.lang.Integer getCcTime()
public void setCcTime(java.lang.Integer ccTime)
ccTime
- the value corresponding to the payload of the [CC-Time] Avp.public java.lang.Long getCcTotalOctets()
public void setCcTotalOctets(java.lang.Long ccTotalOctets)
ccTotalOctets
- the value corresponding to the payload of the [CC-Total-Octets] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of RequestedServiceUnit is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of RequestedServiceUnit will be transformed into Avps nested inside of the [Requested-Service-Unit] Avp.
AvpTransformationException
- if a member of RequestedServiceUnit is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |