public interface EventType extends GroupedAvp
7.2.65 Event-Type AVP The Event-Type AVP (AVP code 823) is of type Grouped and contains information about the type of chargeable telecommunication service/event for which the accounting-request message is generated. It has the following ABNF grammar: Event-Type ::= <AVP Header: 823 > [ SIP-Method ] [ Event ] [ Expires ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEvent()
Returns the value of the Event AVP, of type UTF8String.
|
long |
getExpires()
Returns the value of the Expires AVP, of type Unsigned32.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
java.lang.String |
getSipMethod()
Returns the value of the SIP-Method AVP, of type UTF8String.
|
boolean |
hasEvent()
Returns true if the Event AVP is present in the Event-Type AVP.
|
boolean |
hasExpires()
Returns true if the Expires AVP is present in the Event-Type AVP.
|
boolean |
hasSipMethod()
Returns true if the SIP-Method AVP is present in the Event-Type AVP.
|
void |
removeEvent()
Removes the Event AVP from the Event-Type AVP.
|
void |
removeExpires()
Removes the Expires AVP from the Event-Type AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Event-Type AVP.
|
void |
removeSipMethod()
Removes the SIP-Method AVP from the Event-Type AVP.
|
void |
setEvent(java.lang.String event)
Sets the value of the Event AVP, of type UTF8String.
|
void |
setExpires(long expires)
Sets the value of the Expires AVP, of type Unsigned32.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setSipMethod(java.lang.String sipMethod)
Sets the value of the SIP-Method AVP, of type UTF8String.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasSipMethod()
java.lang.String getSipMethod()
void setSipMethod(java.lang.String sipMethod)
java.lang.NullPointerException
- if sipMethod
is null
.void removeSipMethod()
boolean hasEvent()
java.lang.String getEvent()
void setEvent(java.lang.String event)
java.lang.NullPointerException
- if event
is null
.void removeEvent()
boolean hasExpires()
long getExpires()
hasExpires()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Expires AVP has not been set.void setExpires(long expires)
void removeExpires()
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()