public interface TimeStamps extends GroupedAvp
7.2.111 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 ]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.
|
java.util.Date |
getSipResponseTimestamp()
Returns the value of the SIP-Response-Timestamp AVP, of type Time.
|
boolean |
hasSipRequestTimestamp()
Returns true if the SIP-Request-Timestamp 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.
|
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 |
removeSipResponseTimestamp()
Removes the SIP-Response-Timestamp 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 |
setSipResponseTimestamp(java.util.Date sipResponseTimestamp)
Sets the value of the SIP-Response-Timestamp AVP, of type Time.
|
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()
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()