public interface TimeStamps extends GroupedAvp
7.2.231 Time-Stamps AVP The Time-Stamps AVP (AVP code 833) is of type Grouped and holds the time of the initial SIP request and the time of the response to the initial SIP Request. It has the following ABNF grammar: Time-Stamps ::= < AVP Header: 833 > [ SIP-Request-Timestamp ] [ SIP-Response-Timestamp ] [ SIP-Request-Timestamp-Fraction ] [ SIP-Response-Timestamp-Fraction ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
java.util.Date |
getSipRequestTimestamp()
Returns the value of the SIP-Request-Timestamp AVP, of type Time.
|
long |
getSipRequestTimestampFraction()
Returns the value of the SIP-Request-Timestamp-Fraction AVP, of type Unsigned32.
|
java.util.Date |
getSipResponseTimestamp()
Returns the value of the SIP-Response-Timestamp AVP, of type Time.
|
long |
getSipResponseTimestampFraction()
Returns the value of the SIP-Response-Timestamp-Fraction AVP, of type Unsigned32.
|
boolean |
hasSipRequestTimestamp()
Returns true if the SIP-Request-Timestamp AVP is present in the Time-Stamps AVP.
|
boolean |
hasSipRequestTimestampFraction()
Returns true if the SIP-Request-Timestamp-Fraction AVP is present in the Time-Stamps AVP.
|
boolean |
hasSipResponseTimestamp()
Returns true if the SIP-Response-Timestamp AVP is present in the Time-Stamps AVP.
|
boolean |
hasSipResponseTimestampFraction()
Returns true if the SIP-Response-Timestamp-Fraction AVP is present in the Time-Stamps AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Time-Stamps AVP.
|
void |
removeSipRequestTimestamp()
Removes the SIP-Request-Timestamp AVP from the Time-Stamps AVP.
|
void |
removeSipRequestTimestampFraction()
Removes the SIP-Request-Timestamp-Fraction AVP from the Time-Stamps AVP.
|
void |
removeSipResponseTimestamp()
Removes the SIP-Response-Timestamp AVP from the Time-Stamps AVP.
|
void |
removeSipResponseTimestampFraction()
Removes the SIP-Response-Timestamp-Fraction AVP from the Time-Stamps AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setSipRequestTimestamp(java.util.Date sipRequestTimestamp)
Sets the value of the SIP-Request-Timestamp AVP, of type Time.
|
void |
setSipRequestTimestampFraction(long sipRequestTimestampFraction)
Sets the value of the SIP-Request-Timestamp-Fraction AVP, of type Unsigned32.
|
void |
setSipResponseTimestamp(java.util.Date sipResponseTimestamp)
Sets the value of the SIP-Response-Timestamp AVP, of type Time.
|
void |
setSipResponseTimestampFraction(long sipResponseTimestampFraction)
Sets the value of the SIP-Response-Timestamp-Fraction AVP, of type Unsigned32.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasSipRequestTimestamp()
java.util.Date getSipRequestTimestamp()
void setSipRequestTimestamp(java.util.Date sipRequestTimestamp)
java.lang.NullPointerException
- if sipRequestTimestamp
is null
.void removeSipRequestTimestamp()
boolean hasSipResponseTimestamp()
java.util.Date getSipResponseTimestamp()
void setSipResponseTimestamp(java.util.Date sipResponseTimestamp)
java.lang.NullPointerException
- if sipResponseTimestamp
is null
.void removeSipResponseTimestamp()
boolean hasSipRequestTimestampFraction()
long getSipRequestTimestampFraction()
hasSipRequestTimestampFraction()
to check the existence of this AVP.java.lang.IllegalStateException
- if the SIP-Request-Timestamp-Fraction AVP has not been set.void setSipRequestTimestampFraction(long sipRequestTimestampFraction)
void removeSipRequestTimestampFraction()
boolean hasSipResponseTimestampFraction()
long getSipResponseTimestampFraction()
hasSipResponseTimestampFraction()
to check the existence of this AVP.java.lang.IllegalStateException
- if the SIP-Response-Timestamp-Fraction AVP has not been set.void setSipResponseTimestampFraction(long sipResponseTimestampFraction)
void removeSipResponseTimestampFraction()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
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.NullPointerException
- if avps
is null
.void removeExtensionAvps()