Interface SmsInformation
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface SmsInformation extends GroupedAvp
Defines an interface representing the SMS-Information grouped AVP type. From the Diameter Ro Reference Point Protocol Details (3GPP TS 32.299 V12.11.0) specification:7.2.211 SMS-Information AVP The SMS-Information AVP (AVP code 2000) is of type Grouped. Its purpose is to allow the transmission of additional SMS service specific information elements. It has the following ABNF grammar: SMS-Information ::= < AVP Header: 2000> [ SMS-Node ] [ Client-Address ] [ Originator-SCCP-Address ] [ SMSC-Address ] [ Data-Coding-Scheme ] [ SM-Discharge-Time ] [ SM-Message-Type ] [ Originator-Interface ] [ SM-Protocol-ID ] [ Reply-Path-Requested ] [ SM-Status ] [ SM-User-Data-Header ] [ Number-Of-Messages-Sent ] [ SM-Sequence-Number ] * [ Recipient-Info ] [ Originator-Received-Address ] [ SM-Service-Type ] [ SMS-Result ] [ SM-Device-Trigger-Indicator ] [ SM-Device-Trigger-Information ]
Note:
The support for extension AVPs is present even thou the ABNF grammar for this AVP does not contain the "* [ AVP ]" line. Be aware that adding any extension AVPs may result in interoperability problems with products that strongly validate the incoming diameter message for it's adherence to the specification.
-
-
Field Summary
-
Fields inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Address
getClientAddress()
Returns the value of the Client-Address AVP, of type Address.int
getDataCodingScheme()
Returns the value of the Data-Coding-Scheme AVP, of type Integer32.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.long
getNumberOfMessagesSent()
Returns the value of the Number-Of-Messages-Sent AVP, of type Unsigned32.OriginatorInterface
getOriginatorInterface()
Returns the value of the Originator-Interface AVP, of type Grouped.OriginatorReceivedAddress
getOriginatorReceivedAddress()
Returns the value of the Originator-Received-Address AVP, of type Grouped.Address
getOriginatorSccpAddress()
Returns the value of the Originator-SCCP-Address AVP, of type Address.RecipientInfo[]
getRecipientInfos()
Returns the set of Recipient-Info AVPs.ReplyPathRequested
getReplyPathRequested()
Returns the value of the Reply-Path-Requested AVP, of type Enumerated.SmDeviceTriggerIndicator
getSmDeviceTriggerIndicator()
Returns the value of the SM-Device-Trigger-Indicator AVP, of type Enumerated.SmDeviceTriggerInformation
getSmDeviceTriggerInformation()
Returns the value of the SM-Device-Trigger-Information AVP, of type Grouped.Date
getSmDischargeTime()
Returns the value of the SM-Discharge-Time AVP, of type Time.SmMessageType
getSmMessageType()
Returns the value of the SM-Message-Type AVP, of type Enumerated.byte[]
getSmProtocolId()
Returns the value of the SM-Protocol-ID AVP, of type OctetString.Address
getSmscAddress()
Returns the value of the SMSC-Address AVP, of type Address.long
getSmSequenceNumber()
Returns the value of the SM-Sequence-Number AVP, of type Unsigned32.SmServiceType
getSmServiceType()
Returns the value of the SM-Service-Type AVP, of type Enumerated.SmsNode
getSmsNode()
Returns the value of the SMS-Node AVP, of type Enumerated.long
getSmsResult()
Returns the value of the SMS-Result AVP, of type Unsigned32.byte[]
getSmStatus()
Returns the value of the SM-Status AVP, of type OctetString.byte[]
getSmUserDataHeader()
Returns the value of the SM-User-Data-Header AVP, of type OctetString.boolean
hasClientAddress()
Returns true if the Client-Address AVP is present in the SMS-Information AVP.boolean
hasDataCodingScheme()
Returns true if the Data-Coding-Scheme AVP is present in the SMS-Information AVP.boolean
hasNumberOfMessagesSent()
Returns true if the Number-Of-Messages-Sent AVP is present in the SMS-Information AVP.boolean
hasOriginatorInterface()
Returns true if the Originator-Interface AVP is present in the SMS-Information AVP.boolean
hasOriginatorReceivedAddress()
Returns true if the Originator-Received-Address AVP is present in the SMS-Information AVP.boolean
hasOriginatorSccpAddress()
Returns true if the Originator-SCCP-Address AVP is present in the SMS-Information AVP.boolean
hasReplyPathRequested()
Returns true if the Reply-Path-Requested AVP is present in the SMS-Information AVP.boolean
hasSmDeviceTriggerIndicator()
Returns true if the SM-Device-Trigger-Indicator AVP is present in the SMS-Information AVP.boolean
hasSmDeviceTriggerInformation()
Returns true if the SM-Device-Trigger-Information AVP is present in the SMS-Information AVP.boolean
hasSmDischargeTime()
Returns true if the SM-Discharge-Time AVP is present in the SMS-Information AVP.boolean
hasSmMessageType()
Returns true if the SM-Message-Type AVP is present in the SMS-Information AVP.boolean
hasSmProtocolId()
Returns true if the SM-Protocol-ID AVP is present in the SMS-Information AVP.boolean
hasSmscAddress()
Returns true if the SMSC-Address AVP is present in the SMS-Information AVP.boolean
hasSmSequenceNumber()
Returns true if the SM-Sequence-Number AVP is present in the SMS-Information AVP.boolean
hasSmServiceType()
Returns true if the SM-Service-Type AVP is present in the SMS-Information AVP.boolean
hasSmsNode()
Returns true if the SMS-Node AVP is present in the SMS-Information AVP.boolean
hasSmsResult()
Returns true if the SMS-Result AVP is present in the SMS-Information AVP.boolean
hasSmStatus()
Returns true if the SM-Status AVP is present in the SMS-Information AVP.boolean
hasSmUserDataHeader()
Returns true if the SM-User-Data-Header AVP is present in the SMS-Information AVP.void
removeClientAddress()
Removes the Client-Address AVP from the SMS-Information AVP.void
removeDataCodingScheme()
Removes the Data-Coding-Scheme AVP from the SMS-Information AVP.void
removeExtensionAvps()
Removes all extension AVPs from the SMS-Information AVP.void
removeNumberOfMessagesSent()
Removes the Number-Of-Messages-Sent AVP from the SMS-Information AVP.void
removeOriginatorInterface()
Removes the Originator-Interface AVP from the SMS-Information AVP.void
removeOriginatorReceivedAddress()
Removes the Originator-Received-Address AVP from the SMS-Information AVP.void
removeOriginatorSccpAddress()
Removes the Originator-SCCP-Address AVP from the SMS-Information AVP.void
removeRecipientInfos()
Removes all Recipient-Info AVPs from the SMS-Information AVP.void
removeReplyPathRequested()
Removes the Reply-Path-Requested AVP from the SMS-Information AVP.void
removeSmDeviceTriggerIndicator()
Removes the SM-Device-Trigger-Indicator AVP from the SMS-Information AVP.void
removeSmDeviceTriggerInformation()
Removes the SM-Device-Trigger-Information AVP from the SMS-Information AVP.void
removeSmDischargeTime()
Removes the SM-Discharge-Time AVP from the SMS-Information AVP.void
removeSmMessageType()
Removes the SM-Message-Type AVP from the SMS-Information AVP.void
removeSmProtocolId()
Removes the SM-Protocol-ID AVP from the SMS-Information AVP.void
removeSmscAddress()
Removes the SMSC-Address AVP from the SMS-Information AVP.void
removeSmSequenceNumber()
Removes the SM-Sequence-Number AVP from the SMS-Information AVP.void
removeSmServiceType()
Removes the SM-Service-Type AVP from the SMS-Information AVP.void
removeSmsNode()
Removes the SMS-Node AVP from the SMS-Information AVP.void
removeSmsResult()
Removes the SMS-Result AVP from the SMS-Information AVP.void
removeSmStatus()
Removes the SM-Status AVP from the SMS-Information AVP.void
removeSmUserDataHeader()
Removes the SM-User-Data-Header AVP from the SMS-Information AVP.void
setClientAddress(Address clientAddress)
Sets the value of the Client-Address AVP, of type Address.void
setDataCodingScheme(int dataCodingScheme)
Sets the value of the Data-Coding-Scheme AVP, of type Integer32.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setNumberOfMessagesSent(long numberOfMessagesSent)
Sets the value of the Number-Of-Messages-Sent AVP, of type Unsigned32.void
setOriginatorInterface(OriginatorInterface originatorInterface)
Sets the value of the Originator-Interface AVP, of type Grouped.void
setOriginatorReceivedAddress(OriginatorReceivedAddress originatorReceivedAddress)
Sets the value of the Originator-Received-Address AVP, of type Grouped.void
setOriginatorSccpAddress(Address originatorSccpAddress)
Sets the value of the Originator-SCCP-Address AVP, of type Address.void
setRecipientInfo(RecipientInfo recipientInfo)
Sets a single Recipient-Info AVP in the SMS-Information AVP, of type Grouped.void
setRecipientInfos(RecipientInfo[] recipientInfos)
Sets the set of Recipient-Info AVPs, with all the values in the given array.void
setReplyPathRequested(ReplyPathRequested replyPathRequested)
Sets the value of the Reply-Path-Requested AVP, of type Enumerated.void
setSmDeviceTriggerIndicator(SmDeviceTriggerIndicator smDeviceTriggerIndicator)
Sets the value of the SM-Device-Trigger-Indicator AVP, of type Enumerated.void
setSmDeviceTriggerInformation(SmDeviceTriggerInformation smDeviceTriggerInformation)
Sets the value of the SM-Device-Trigger-Information AVP, of type Grouped.void
setSmDischargeTime(Date smDischargeTime)
Sets the value of the SM-Discharge-Time AVP, of type Time.void
setSmMessageType(SmMessageType smMessageType)
Sets the value of the SM-Message-Type AVP, of type Enumerated.void
setSmProtocolId(byte[] smProtocolId)
Sets the value of the SM-Protocol-ID AVP, of type OctetString.void
setSmscAddress(Address smscAddress)
Sets the value of the SMSC-Address AVP, of type Address.void
setSmSequenceNumber(long smSequenceNumber)
Sets the value of the SM-Sequence-Number AVP, of type Unsigned32.void
setSmServiceType(SmServiceType smServiceType)
Sets the value of the SM-Service-Type AVP, of type Enumerated.void
setSmsNode(SmsNode smsNode)
Sets the value of the SMS-Node AVP, of type Enumerated.void
setSmsResult(long smsResult)
Sets the value of the SMS-Result AVP, of type Unsigned32.void
setSmStatus(byte[] smStatus)
Sets the value of the SM-Status AVP, of type OctetString.void
setSmUserDataHeader(byte[] smUserDataHeader)
Sets the value of the SM-User-Data-Header AVP, of type OctetString.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
-
-
-
-
Method Detail
-
hasSmsNode
boolean hasSmsNode()
Returns true if the SMS-Node AVP is present in the SMS-Information AVP.
-
getSmsNode
SmsNode getSmsNode()
Returns the value of the SMS-Node AVP, of type Enumerated.- Returns:
- the value of the SMS-Node AVP, or null if it has not been set.
-
setSmsNode
void setSmsNode(SmsNode smsNode)
Sets the value of the SMS-Node AVP, of type Enumerated.- Throws:
NullPointerException
- ifsmsNode
isnull
.
-
removeSmsNode
void removeSmsNode()
Removes the SMS-Node AVP from the SMS-Information AVP. If the SMS-Node AVP is not present, this method returns silently.
-
hasClientAddress
boolean hasClientAddress()
Returns true if the Client-Address AVP is present in the SMS-Information AVP.
-
getClientAddress
Address getClientAddress()
Returns the value of the Client-Address AVP, of type Address.- Returns:
- the value of the Client-Address AVP, or null if it has not been set.
-
setClientAddress
void setClientAddress(Address clientAddress)
Sets the value of the Client-Address AVP, of type Address.- Throws:
NullPointerException
- ifclientAddress
isnull
.
-
removeClientAddress
void removeClientAddress()
Removes the Client-Address AVP from the SMS-Information AVP. If the Client-Address AVP is not present, this method returns silently.
-
hasOriginatorSccpAddress
boolean hasOriginatorSccpAddress()
Returns true if the Originator-SCCP-Address AVP is present in the SMS-Information AVP.
-
getOriginatorSccpAddress
Address getOriginatorSccpAddress()
Returns the value of the Originator-SCCP-Address AVP, of type Address.- Returns:
- the value of the Originator-SCCP-Address AVP, or null if it has not been set.
-
setOriginatorSccpAddress
void setOriginatorSccpAddress(Address originatorSccpAddress)
Sets the value of the Originator-SCCP-Address AVP, of type Address.- Throws:
NullPointerException
- iforiginatorSccpAddress
isnull
.
-
removeOriginatorSccpAddress
void removeOriginatorSccpAddress()
Removes the Originator-SCCP-Address AVP from the SMS-Information AVP. If the Originator-SCCP-Address AVP is not present, this method returns silently.
-
hasSmscAddress
boolean hasSmscAddress()
Returns true if the SMSC-Address AVP is present in the SMS-Information AVP.
-
getSmscAddress
Address getSmscAddress()
Returns the value of the SMSC-Address AVP, of type Address.- Returns:
- the value of the SMSC-Address AVP, or null if it has not been set.
-
setSmscAddress
void setSmscAddress(Address smscAddress)
Sets the value of the SMSC-Address AVP, of type Address.- Throws:
NullPointerException
- ifsmscAddress
isnull
.
-
removeSmscAddress
void removeSmscAddress()
Removes the SMSC-Address AVP from the SMS-Information AVP. If the SMSC-Address AVP is not present, this method returns silently.
-
hasDataCodingScheme
boolean hasDataCodingScheme()
Returns true if the Data-Coding-Scheme AVP is present in the SMS-Information AVP.
-
getDataCodingScheme
int getDataCodingScheme()
Returns the value of the Data-Coding-Scheme AVP, of type Integer32. UsehasDataCodingScheme()
to check the existence of this AVP.- Returns:
- the value of the Data-Coding-Scheme AVP
- Throws:
IllegalStateException
- if the Data-Coding-Scheme AVP has not been set.
-
setDataCodingScheme
void setDataCodingScheme(int dataCodingScheme)
Sets the value of the Data-Coding-Scheme AVP, of type Integer32.
-
removeDataCodingScheme
void removeDataCodingScheme()
Removes the Data-Coding-Scheme AVP from the SMS-Information AVP. If the Data-Coding-Scheme AVP is not present, this method returns silently.
-
hasSmDischargeTime
boolean hasSmDischargeTime()
Returns true if the SM-Discharge-Time AVP is present in the SMS-Information AVP.
-
getSmDischargeTime
Date getSmDischargeTime()
Returns the value of the SM-Discharge-Time AVP, of type Time.- Returns:
- the value of the SM-Discharge-Time AVP, or null if it has not been set.
-
setSmDischargeTime
void setSmDischargeTime(Date smDischargeTime)
Sets the value of the SM-Discharge-Time AVP, of type Time.- Throws:
NullPointerException
- ifsmDischargeTime
isnull
.
-
removeSmDischargeTime
void removeSmDischargeTime()
Removes the SM-Discharge-Time AVP from the SMS-Information AVP. If the SM-Discharge-Time AVP is not present, this method returns silently.
-
hasSmMessageType
boolean hasSmMessageType()
Returns true if the SM-Message-Type AVP is present in the SMS-Information AVP.
-
getSmMessageType
SmMessageType getSmMessageType()
Returns the value of the SM-Message-Type AVP, of type Enumerated.- Returns:
- the value of the SM-Message-Type AVP, or null if it has not been set.
-
setSmMessageType
void setSmMessageType(SmMessageType smMessageType)
Sets the value of the SM-Message-Type AVP, of type Enumerated.- Throws:
NullPointerException
- ifsmMessageType
isnull
.
-
removeSmMessageType
void removeSmMessageType()
Removes the SM-Message-Type AVP from the SMS-Information AVP. If the SM-Message-Type AVP is not present, this method returns silently.
-
hasOriginatorInterface
boolean hasOriginatorInterface()
Returns true if the Originator-Interface AVP is present in the SMS-Information AVP.
-
getOriginatorInterface
OriginatorInterface getOriginatorInterface()
Returns the value of the Originator-Interface AVP, of type Grouped.- Returns:
- the value of the Originator-Interface AVP, or null if it has not been set.
-
setOriginatorInterface
void setOriginatorInterface(OriginatorInterface originatorInterface)
Sets the value of the Originator-Interface AVP, of type Grouped.- Throws:
NullPointerException
- iforiginatorInterface
isnull
.
-
removeOriginatorInterface
void removeOriginatorInterface()
Removes the Originator-Interface AVP from the SMS-Information AVP. If the Originator-Interface AVP is not present, this method returns silently.
-
hasSmProtocolId
boolean hasSmProtocolId()
Returns true if the SM-Protocol-ID AVP is present in the SMS-Information AVP.
-
getSmProtocolId
byte[] getSmProtocolId()
Returns the value of the SM-Protocol-ID AVP, of type OctetString.- Returns:
- the value of the SM-Protocol-ID AVP, or null if it has not been set.
-
setSmProtocolId
void setSmProtocolId(byte[] smProtocolId)
Sets the value of the SM-Protocol-ID AVP, of type OctetString.- Throws:
NullPointerException
- ifsmProtocolId
isnull
.
-
removeSmProtocolId
void removeSmProtocolId()
Removes the SM-Protocol-ID AVP from the SMS-Information AVP. If the SM-Protocol-ID AVP is not present, this method returns silently.
-
hasReplyPathRequested
boolean hasReplyPathRequested()
Returns true if the Reply-Path-Requested AVP is present in the SMS-Information AVP.
-
getReplyPathRequested
ReplyPathRequested getReplyPathRequested()
Returns the value of the Reply-Path-Requested AVP, of type Enumerated.- Returns:
- the value of the Reply-Path-Requested AVP, or null if it has not been set.
-
setReplyPathRequested
void setReplyPathRequested(ReplyPathRequested replyPathRequested)
Sets the value of the Reply-Path-Requested AVP, of type Enumerated.- Throws:
NullPointerException
- ifreplyPathRequested
isnull
.
-
removeReplyPathRequested
void removeReplyPathRequested()
Removes the Reply-Path-Requested AVP from the SMS-Information AVP. If the Reply-Path-Requested AVP is not present, this method returns silently.
-
hasSmStatus
boolean hasSmStatus()
Returns true if the SM-Status AVP is present in the SMS-Information AVP.
-
getSmStatus
byte[] getSmStatus()
Returns the value of the SM-Status AVP, of type OctetString.- Returns:
- the value of the SM-Status AVP, or null if it has not been set.
-
setSmStatus
void setSmStatus(byte[] smStatus)
Sets the value of the SM-Status AVP, of type OctetString.- Throws:
NullPointerException
- ifsmStatus
isnull
.
-
removeSmStatus
void removeSmStatus()
Removes the SM-Status AVP from the SMS-Information AVP. If the SM-Status AVP is not present, this method returns silently.
-
hasSmUserDataHeader
boolean hasSmUserDataHeader()
Returns true if the SM-User-Data-Header AVP is present in the SMS-Information AVP.
-
getSmUserDataHeader
byte[] getSmUserDataHeader()
Returns the value of the SM-User-Data-Header AVP, of type OctetString.- Returns:
- the value of the SM-User-Data-Header AVP, or null if it has not been set.
-
setSmUserDataHeader
void setSmUserDataHeader(byte[] smUserDataHeader)
Sets the value of the SM-User-Data-Header AVP, of type OctetString.- Throws:
NullPointerException
- ifsmUserDataHeader
isnull
.
-
removeSmUserDataHeader
void removeSmUserDataHeader()
Removes the SM-User-Data-Header AVP from the SMS-Information AVP. If the SM-User-Data-Header AVP is not present, this method returns silently.
-
hasNumberOfMessagesSent
boolean hasNumberOfMessagesSent()
Returns true if the Number-Of-Messages-Sent AVP is present in the SMS-Information AVP.
-
getNumberOfMessagesSent
long getNumberOfMessagesSent()
Returns the value of the Number-Of-Messages-Sent AVP, of type Unsigned32. UsehasNumberOfMessagesSent()
to check the existence of this AVP.- Returns:
- the value of the Number-Of-Messages-Sent AVP
- Throws:
IllegalStateException
- if the Number-Of-Messages-Sent AVP has not been set.
-
setNumberOfMessagesSent
void setNumberOfMessagesSent(long numberOfMessagesSent)
Sets the value of the Number-Of-Messages-Sent AVP, of type Unsigned32.
-
removeNumberOfMessagesSent
void removeNumberOfMessagesSent()
Removes the Number-Of-Messages-Sent AVP from the SMS-Information AVP. If the Number-Of-Messages-Sent AVP is not present, this method returns silently.
-
hasSmSequenceNumber
boolean hasSmSequenceNumber()
Returns true if the SM-Sequence-Number AVP is present in the SMS-Information AVP.
-
getSmSequenceNumber
long getSmSequenceNumber()
Returns the value of the SM-Sequence-Number AVP, of type Unsigned32. UsehasSmSequenceNumber()
to check the existence of this AVP.- Returns:
- the value of the SM-Sequence-Number AVP
- Throws:
IllegalStateException
- if the SM-Sequence-Number AVP has not been set.
-
setSmSequenceNumber
void setSmSequenceNumber(long smSequenceNumber)
Sets the value of the SM-Sequence-Number AVP, of type Unsigned32.
-
removeSmSequenceNumber
void removeSmSequenceNumber()
Removes the SM-Sequence-Number AVP from the SMS-Information AVP. If the SM-Sequence-Number AVP is not present, this method returns silently.
-
getRecipientInfos
RecipientInfo[] getRecipientInfos()
Returns the set of Recipient-Info AVPs. The returned array contains the AVPs in the order they appear in the SMS-Information AVP. A return value of null implies that no Recipient-Info AVPs have been set. The elements in the given array are RecipientInfo objects.
-
setRecipientInfo
void setRecipientInfo(RecipientInfo recipientInfo)
Sets a single Recipient-Info AVP in the SMS-Information AVP, of type Grouped.- Throws:
NullPointerException
- ifrecipientInfo
isnull
.
-
setRecipientInfos
void setRecipientInfos(RecipientInfo[] recipientInfos)
Sets the set of Recipient-Info AVPs, with all the values in the given array. The AVPs will be added to the SMS-Information AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getRecipientInfos() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifrecipientInfos
isnull
.
-
removeRecipientInfos
void removeRecipientInfos()
Removes all Recipient-Info AVPs from the SMS-Information AVP. If no Recipient-Info AVPs are present, this method returns silently.
-
hasOriginatorReceivedAddress
boolean hasOriginatorReceivedAddress()
Returns true if the Originator-Received-Address AVP is present in the SMS-Information AVP.
-
getOriginatorReceivedAddress
OriginatorReceivedAddress getOriginatorReceivedAddress()
Returns the value of the Originator-Received-Address AVP, of type Grouped.- Returns:
- the value of the Originator-Received-Address AVP, or null if it has not been set.
-
setOriginatorReceivedAddress
void setOriginatorReceivedAddress(OriginatorReceivedAddress originatorReceivedAddress)
Sets the value of the Originator-Received-Address AVP, of type Grouped.- Throws:
NullPointerException
- iforiginatorReceivedAddress
isnull
.
-
removeOriginatorReceivedAddress
void removeOriginatorReceivedAddress()
Removes the Originator-Received-Address AVP from the SMS-Information AVP. If the Originator-Received-Address AVP is not present, this method returns silently.
-
hasSmServiceType
boolean hasSmServiceType()
Returns true if the SM-Service-Type AVP is present in the SMS-Information AVP.
-
getSmServiceType
SmServiceType getSmServiceType()
Returns the value of the SM-Service-Type AVP, of type Enumerated.- Returns:
- the value of the SM-Service-Type AVP, or null if it has not been set.
-
setSmServiceType
void setSmServiceType(SmServiceType smServiceType)
Sets the value of the SM-Service-Type AVP, of type Enumerated.- Throws:
NullPointerException
- ifsmServiceType
isnull
.
-
removeSmServiceType
void removeSmServiceType()
Removes the SM-Service-Type AVP from the SMS-Information AVP. If the SM-Service-Type AVP is not present, this method returns silently.
-
hasSmsResult
boolean hasSmsResult()
Returns true if the SMS-Result AVP is present in the SMS-Information AVP.
-
getSmsResult
long getSmsResult()
Returns the value of the SMS-Result AVP, of type Unsigned32. UsehasSmsResult()
to check the existence of this AVP.- Returns:
- the value of the SMS-Result AVP
- Throws:
IllegalStateException
- if the SMS-Result AVP has not been set.
-
setSmsResult
void setSmsResult(long smsResult)
Sets the value of the SMS-Result AVP, of type Unsigned32.
-
removeSmsResult
void removeSmsResult()
Removes the SMS-Result AVP from the SMS-Information AVP. If the SMS-Result AVP is not present, this method returns silently.
-
hasSmDeviceTriggerIndicator
boolean hasSmDeviceTriggerIndicator()
Returns true if the SM-Device-Trigger-Indicator AVP is present in the SMS-Information AVP.
-
getSmDeviceTriggerIndicator
SmDeviceTriggerIndicator getSmDeviceTriggerIndicator()
Returns the value of the SM-Device-Trigger-Indicator AVP, of type Enumerated.- Returns:
- the value of the SM-Device-Trigger-Indicator AVP, or null if it has not been set.
-
setSmDeviceTriggerIndicator
void setSmDeviceTriggerIndicator(SmDeviceTriggerIndicator smDeviceTriggerIndicator)
Sets the value of the SM-Device-Trigger-Indicator AVP, of type Enumerated.- Throws:
NullPointerException
- ifsmDeviceTriggerIndicator
isnull
.
-
removeSmDeviceTriggerIndicator
void removeSmDeviceTriggerIndicator()
Removes the SM-Device-Trigger-Indicator AVP from the SMS-Information AVP. If the SM-Device-Trigger-Indicator AVP is not present, this method returns silently.
-
hasSmDeviceTriggerInformation
boolean hasSmDeviceTriggerInformation()
Returns true if the SM-Device-Trigger-Information AVP is present in the SMS-Information AVP.
-
getSmDeviceTriggerInformation
SmDeviceTriggerInformation getSmDeviceTriggerInformation()
Returns the value of the SM-Device-Trigger-Information AVP, of type Grouped.- Returns:
- the value of the SM-Device-Trigger-Information AVP, or null if it has not been set.
-
setSmDeviceTriggerInformation
void setSmDeviceTriggerInformation(SmDeviceTriggerInformation smDeviceTriggerInformation)
Sets the value of the SM-Device-Trigger-Information AVP, of type Grouped.- Throws:
NullPointerException
- ifsmDeviceTriggerInformation
isnull
.
-
removeSmDeviceTriggerInformation
void removeSmDeviceTriggerInformation()
Removes the SM-Device-Trigger-Information AVP from the SMS-Information AVP. If the SM-Device-Trigger-Information AVP is not present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the SMS-Information AVP. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to SMS-Information AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
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)NullPointerException
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the SMS-Information AVP. If no extension AVPs are present, this method returns silently.
-
-