public interface BasicServiceCode extends GroupedAvp
7.2.29 A Basic-Service-Code AVP The Basic-Service-Code AVP (AVP code 3411) is of type Grouped and holds service information utilized by a voice call service. Either a Bearer-Service AVP or a Teleservice AVP is included. It has the following ABNF grammar: Basic-Service-Code ::= < AVP Header: 3411 > [ Bearer-Service ] [ Teleservice ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
byte[] |
getBearerService()
Returns the value of the Bearer-Service AVP, of type OctetString.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
byte[] |
getTeleservice()
Returns the value of the Teleservice AVP, of type OctetString.
|
boolean |
hasBearerService()
Returns true if the Bearer-Service AVP is present in the Basic-Service-Code AVP.
|
boolean |
hasTeleservice()
Returns true if the Teleservice AVP is present in the Basic-Service-Code AVP.
|
void |
removeBearerService()
Removes the Bearer-Service AVP from the Basic-Service-Code AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Basic-Service-Code AVP.
|
void |
removeTeleservice()
Removes the Teleservice AVP from the Basic-Service-Code AVP.
|
void |
setBearerService(byte[] bearerService)
Sets the value of the Bearer-Service AVP, of type OctetString.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTeleservice(byte[] teleservice)
Sets the value of the Teleservice AVP, of type OctetString.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasBearerService()
byte[] getBearerService()
void setBearerService(byte[] bearerService)
java.lang.NullPointerException
- if bearerService
is null
.void removeBearerService()
boolean hasTeleservice()
byte[] getTeleservice()
void setTeleservice(byte[] teleservice)
java.lang.NullPointerException
- if teleservice
is null
.void removeTeleservice()
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()