Interface VcsInformation
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface VcsInformation extends GroupedAvp
Defines an interface representing the VCS-Information grouped AVP type. From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V12.11.0) specification:7.2.242 A VCS-Information AVP The VCS-Information AVP (AVP code 3410) is of type Grouped. Its purpose is to allow the transmission of additional VCS service specific information elements. It has the following ABNF grammar: VCS-Information ::= < AVP Header: 3410> [ Bearer-Capability ] [ Network-Call-Reference-Number ] [ MSC-Address ] [ Basic-Service-Code ] [ ISUP-Location-Number ] [ VLR-Number ] [ Forwarding-Pending ] [ ISUP-Cause ] [ Start-Time ] [ Start-of-Charging ] [ Stop-Time ] [ PS-Free-Format-Data ]
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 BasicServiceCode
getBasicServiceCode()
Returns the value of the Basic-Service-Code AVP, of type Grouped.byte[]
getBearerCapability()
Returns the value of the Bearer-Capability AVP, of type OctetString.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.ForwardingPending
getForwardingPending()
Returns the value of the Forwarding-Pending AVP, of type Enumerated.IsupCause
getIsupCause()
Returns the value of the ISUP-Cause AVP, of type Grouped.byte[]
getIsupLocationNumber()
Returns the value of the ISUP-Location-Number AVP, of type OctetString.byte[]
getMscAddress()
Returns the value of the MSC-Address AVP, of type OctetString.byte[]
getNetworkCallReferenceNumber()
Returns the value of the Network-Call-Reference-Number AVP, of type OctetString.byte[]
getPsFreeFormatData()
Returns the value of the PS-Free-Format-Data AVP, of type OctetString.Date
getStartOfCharging()
Returns the value of the Start-of-Charging AVP, of type Time.Date
getStartTime()
Returns the value of the Start-Time AVP, of type Time.Date
getStopTime()
Returns the value of the Stop-Time AVP, of type Time.byte[]
getVlrNumber()
Returns the value of the VLR-Number AVP, of type OctetString.boolean
hasBasicServiceCode()
Returns true if the Basic-Service-Code AVP is present in the VCS-Information AVP.boolean
hasBearerCapability()
Returns true if the Bearer-Capability AVP is present in the VCS-Information AVP.boolean
hasForwardingPending()
Returns true if the Forwarding-Pending AVP is present in the VCS-Information AVP.boolean
hasIsupCause()
Returns true if the ISUP-Cause AVP is present in the VCS-Information AVP.boolean
hasIsupLocationNumber()
Returns true if the ISUP-Location-Number AVP is present in the VCS-Information AVP.boolean
hasMscAddress()
Returns true if the MSC-Address AVP is present in the VCS-Information AVP.boolean
hasNetworkCallReferenceNumber()
Returns true if the Network-Call-Reference-Number AVP is present in the VCS-Information AVP.boolean
hasPsFreeFormatData()
Returns true if the PS-Free-Format-Data AVP is present in the VCS-Information AVP.boolean
hasStartOfCharging()
Returns true if the Start-of-Charging AVP is present in the VCS-Information AVP.boolean
hasStartTime()
Returns true if the Start-Time AVP is present in the VCS-Information AVP.boolean
hasStopTime()
Returns true if the Stop-Time AVP is present in the VCS-Information AVP.boolean
hasVlrNumber()
Returns true if the VLR-Number AVP is present in the VCS-Information AVP.void
removeBasicServiceCode()
Removes the Basic-Service-Code AVP from the VCS-Information AVP.void
removeBearerCapability()
Removes the Bearer-Capability AVP from the VCS-Information AVP.void
removeExtensionAvps()
Removes all extension AVPs from the VCS-Information AVP.void
removeForwardingPending()
Removes the Forwarding-Pending AVP from the VCS-Information AVP.void
removeIsupCause()
Removes the ISUP-Cause AVP from the VCS-Information AVP.void
removeIsupLocationNumber()
Removes the ISUP-Location-Number AVP from the VCS-Information AVP.void
removeMscAddress()
Removes the MSC-Address AVP from the VCS-Information AVP.void
removeNetworkCallReferenceNumber()
Removes the Network-Call-Reference-Number AVP from the VCS-Information AVP.void
removePsFreeFormatData()
Removes the PS-Free-Format-Data AVP from the VCS-Information AVP.void
removeStartOfCharging()
Removes the Start-of-Charging AVP from the VCS-Information AVP.void
removeStartTime()
Removes the Start-Time AVP from the VCS-Information AVP.void
removeStopTime()
Removes the Stop-Time AVP from the VCS-Information AVP.void
removeVlrNumber()
Removes the VLR-Number AVP from the VCS-Information AVP.void
setBasicServiceCode(BasicServiceCode basicServiceCode)
Sets the value of the Basic-Service-Code AVP, of type Grouped.void
setBearerCapability(byte[] bearerCapability)
Sets the value of the Bearer-Capability AVP, of type OctetString.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setForwardingPending(ForwardingPending forwardingPending)
Sets the value of the Forwarding-Pending AVP, of type Enumerated.void
setIsupCause(IsupCause isupCause)
Sets the value of the ISUP-Cause AVP, of type Grouped.void
setIsupLocationNumber(byte[] isupLocationNumber)
Sets the value of the ISUP-Location-Number AVP, of type OctetString.void
setMscAddress(byte[] mscAddress)
Sets the value of the MSC-Address AVP, of type OctetString.void
setNetworkCallReferenceNumber(byte[] networkCallReferenceNumber)
Sets the value of the Network-Call-Reference-Number AVP, of type OctetString.void
setPsFreeFormatData(byte[] psFreeFormatData)
Sets the value of the PS-Free-Format-Data AVP, of type OctetString.void
setStartOfCharging(Date startOfCharging)
Sets the value of the Start-of-Charging AVP, of type Time.void
setStartTime(Date startTime)
Sets the value of the Start-Time AVP, of type Time.void
setStopTime(Date stopTime)
Sets the value of the Stop-Time AVP, of type Time.void
setVlrNumber(byte[] vlrNumber)
Sets the value of the VLR-Number 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
-
hasBearerCapability
boolean hasBearerCapability()
Returns true if the Bearer-Capability AVP is present in the VCS-Information AVP.
-
getBearerCapability
byte[] getBearerCapability()
Returns the value of the Bearer-Capability AVP, of type OctetString.- Returns:
- the value of the Bearer-Capability AVP, or null if it has not been set.
-
setBearerCapability
void setBearerCapability(byte[] bearerCapability)
Sets the value of the Bearer-Capability AVP, of type OctetString.- Throws:
NullPointerException
- ifbearerCapability
isnull
.
-
removeBearerCapability
void removeBearerCapability()
Removes the Bearer-Capability AVP from the VCS-Information AVP. If the Bearer-Capability AVP is not present, this method returns silently.
-
hasNetworkCallReferenceNumber
boolean hasNetworkCallReferenceNumber()
Returns true if the Network-Call-Reference-Number AVP is present in the VCS-Information AVP.
-
getNetworkCallReferenceNumber
byte[] getNetworkCallReferenceNumber()
Returns the value of the Network-Call-Reference-Number AVP, of type OctetString.- Returns:
- the value of the Network-Call-Reference-Number AVP, or null if it has not been set.
-
setNetworkCallReferenceNumber
void setNetworkCallReferenceNumber(byte[] networkCallReferenceNumber)
Sets the value of the Network-Call-Reference-Number AVP, of type OctetString.- Throws:
NullPointerException
- ifnetworkCallReferenceNumber
isnull
.
-
removeNetworkCallReferenceNumber
void removeNetworkCallReferenceNumber()
Removes the Network-Call-Reference-Number AVP from the VCS-Information AVP. If the Network-Call-Reference-Number AVP is not present, this method returns silently.
-
hasMscAddress
boolean hasMscAddress()
Returns true if the MSC-Address AVP is present in the VCS-Information AVP.
-
getMscAddress
byte[] getMscAddress()
Returns the value of the MSC-Address AVP, of type OctetString.- Returns:
- the value of the MSC-Address AVP, or null if it has not been set.
-
setMscAddress
void setMscAddress(byte[] mscAddress)
Sets the value of the MSC-Address AVP, of type OctetString.- Throws:
NullPointerException
- ifmscAddress
isnull
.
-
removeMscAddress
void removeMscAddress()
Removes the MSC-Address AVP from the VCS-Information AVP. If the MSC-Address AVP is not present, this method returns silently.
-
hasBasicServiceCode
boolean hasBasicServiceCode()
Returns true if the Basic-Service-Code AVP is present in the VCS-Information AVP.
-
getBasicServiceCode
BasicServiceCode getBasicServiceCode()
Returns the value of the Basic-Service-Code AVP, of type Grouped.- Returns:
- the value of the Basic-Service-Code AVP, or null if it has not been set.
-
setBasicServiceCode
void setBasicServiceCode(BasicServiceCode basicServiceCode)
Sets the value of the Basic-Service-Code AVP, of type Grouped.- Throws:
NullPointerException
- ifbasicServiceCode
isnull
.
-
removeBasicServiceCode
void removeBasicServiceCode()
Removes the Basic-Service-Code AVP from the VCS-Information AVP. If the Basic-Service-Code AVP is not present, this method returns silently.
-
hasIsupLocationNumber
boolean hasIsupLocationNumber()
Returns true if the ISUP-Location-Number AVP is present in the VCS-Information AVP.
-
getIsupLocationNumber
byte[] getIsupLocationNumber()
Returns the value of the ISUP-Location-Number AVP, of type OctetString.- Returns:
- the value of the ISUP-Location-Number AVP, or null if it has not been set.
-
setIsupLocationNumber
void setIsupLocationNumber(byte[] isupLocationNumber)
Sets the value of the ISUP-Location-Number AVP, of type OctetString.- Throws:
NullPointerException
- ifisupLocationNumber
isnull
.
-
removeIsupLocationNumber
void removeIsupLocationNumber()
Removes the ISUP-Location-Number AVP from the VCS-Information AVP. If the ISUP-Location-Number AVP is not present, this method returns silently.
-
hasVlrNumber
boolean hasVlrNumber()
Returns true if the VLR-Number AVP is present in the VCS-Information AVP.
-
getVlrNumber
byte[] getVlrNumber()
Returns the value of the VLR-Number AVP, of type OctetString.- Returns:
- the value of the VLR-Number AVP, or null if it has not been set.
-
setVlrNumber
void setVlrNumber(byte[] vlrNumber)
Sets the value of the VLR-Number AVP, of type OctetString.- Throws:
NullPointerException
- ifvlrNumber
isnull
.
-
removeVlrNumber
void removeVlrNumber()
Removes the VLR-Number AVP from the VCS-Information AVP. If the VLR-Number AVP is not present, this method returns silently.
-
hasForwardingPending
boolean hasForwardingPending()
Returns true if the Forwarding-Pending AVP is present in the VCS-Information AVP.
-
getForwardingPending
ForwardingPending getForwardingPending()
Returns the value of the Forwarding-Pending AVP, of type Enumerated.- Returns:
- the value of the Forwarding-Pending AVP, or null if it has not been set.
-
setForwardingPending
void setForwardingPending(ForwardingPending forwardingPending)
Sets the value of the Forwarding-Pending AVP, of type Enumerated.- Throws:
NullPointerException
- ifforwardingPending
isnull
.
-
removeForwardingPending
void removeForwardingPending()
Removes the Forwarding-Pending AVP from the VCS-Information AVP. If the Forwarding-Pending AVP is not present, this method returns silently.
-
hasIsupCause
boolean hasIsupCause()
Returns true if the ISUP-Cause AVP is present in the VCS-Information AVP.
-
getIsupCause
IsupCause getIsupCause()
Returns the value of the ISUP-Cause AVP, of type Grouped.- Returns:
- the value of the ISUP-Cause AVP, or null if it has not been set.
-
setIsupCause
void setIsupCause(IsupCause isupCause)
Sets the value of the ISUP-Cause AVP, of type Grouped.- Throws:
NullPointerException
- ifisupCause
isnull
.
-
removeIsupCause
void removeIsupCause()
Removes the ISUP-Cause AVP from the VCS-Information AVP. If the ISUP-Cause AVP is not present, this method returns silently.
-
hasStartTime
boolean hasStartTime()
Returns true if the Start-Time AVP is present in the VCS-Information AVP.
-
getStartTime
Date getStartTime()
Returns the value of the Start-Time AVP, of type Time.- Returns:
- the value of the Start-Time AVP, or null if it has not been set.
-
setStartTime
void setStartTime(Date startTime)
Sets the value of the Start-Time AVP, of type Time.- Throws:
NullPointerException
- ifstartTime
isnull
.
-
removeStartTime
void removeStartTime()
Removes the Start-Time AVP from the VCS-Information AVP. If the Start-Time AVP is not present, this method returns silently.
-
hasStartOfCharging
boolean hasStartOfCharging()
Returns true if the Start-of-Charging AVP is present in the VCS-Information AVP.
-
getStartOfCharging
Date getStartOfCharging()
Returns the value of the Start-of-Charging AVP, of type Time.- Returns:
- the value of the Start-of-Charging AVP, or null if it has not been set.
-
setStartOfCharging
void setStartOfCharging(Date startOfCharging)
Sets the value of the Start-of-Charging AVP, of type Time.- Throws:
NullPointerException
- ifstartOfCharging
isnull
.
-
removeStartOfCharging
void removeStartOfCharging()
Removes the Start-of-Charging AVP from the VCS-Information AVP. If the Start-of-Charging AVP is not present, this method returns silently.
-
hasStopTime
boolean hasStopTime()
Returns true if the Stop-Time AVP is present in the VCS-Information AVP.
-
getStopTime
Date getStopTime()
Returns the value of the Stop-Time AVP, of type Time.- Returns:
- the value of the Stop-Time AVP, or null if it has not been set.
-
setStopTime
void setStopTime(Date stopTime)
Sets the value of the Stop-Time AVP, of type Time.- Throws:
NullPointerException
- ifstopTime
isnull
.
-
removeStopTime
void removeStopTime()
Removes the Stop-Time AVP from the VCS-Information AVP. If the Stop-Time AVP is not present, this method returns silently.
-
hasPsFreeFormatData
boolean hasPsFreeFormatData()
Returns true if the PS-Free-Format-Data AVP is present in the VCS-Information AVP.
-
getPsFreeFormatData
byte[] getPsFreeFormatData()
Returns the value of the PS-Free-Format-Data AVP, of type OctetString.- Returns:
- the value of the PS-Free-Format-Data AVP, or null if it has not been set.
-
setPsFreeFormatData
void setPsFreeFormatData(byte[] psFreeFormatData)
Sets the value of the PS-Free-Format-Data AVP, of type OctetString.- Throws:
NullPointerException
- ifpsFreeFormatData
isnull
.
-
removePsFreeFormatData
void removePsFreeFormatData()
Removes the PS-Free-Format-Data AVP from the VCS-Information AVP. If the PS-Free-Format-Data 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 VCS-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 VCS-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 VCS-Information AVP. If no extension AVPs are present, this method returns silently.
-
-