|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.TimeStamps
public class TimeStamps
TimeStamps is a lightweight representation of the Grouped [Time-Stamps] Avp. It holds the time of the initial SIP request and the time of the response to the initial SIP Request.
The Time-Stamps Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
TimeStamps()
Constructs an empty TimeStamps object representing the [Time-Stamps] Avp. |
|
TimeStamps(java.util.List<Avp> avps)
Constructs a TimeStamps object representing the Grouped [Time-Stamps] Avp. |
Method Summary | |
---|---|
java.lang.Long |
getSipRequestTimeStamp()
Gets the value corresponding to the payload of the [SIP-Request-Timestamp] Avp. |
java.lang.Long |
getSipResponseTimeStamp()
Gets the value corresponding to the payload of the [SIP-Request-Timestamp] Avp. |
void |
setSipRequestTimeStamp(java.lang.Long sipRequestTimeStamp)
Sets the value corresponding to the payload of the [SIP-Request-Timestamp] Avp. |
void |
setSipResponseTimeStamp(java.lang.Long sipResponseTimeStamp)
Sets the value corresponding to the payload of the [SIP-Response-Timestamp] Avp. |
Avp |
toAvp()
Transforms a TimeStamps object into a Grouped [Time-Stamps] Avp. |
void |
validate()
Validates the members of the TimeStamps object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeStamps()
public TimeStamps(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 TimeStamps, 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
[Time-Stamps] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Long getSipRequestTimeStamp()
public void setSipRequestTimeStamp(java.lang.Long sipRequestTimeStamp)
sipRequestTimeStamp
- the value corresponding to the payload of the [SIP-Request-Timestamp] Avp.public java.lang.Long getSipResponseTimeStamp()
public void setSipResponseTimeStamp(java.lang.Long sipResponseTimeStamp)
sipResponseTimeStamp
- the value corresponding to the payload of the [SIP-Response-Timestamp] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of TimeStamps is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of TimeStamps will be transformed into Avps nested inside of the [Time-Stamps] Avp.
AvpTransformationException
- if a member of TimeStamps is in an unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |