Interface OriginatorAddress
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface OriginatorAddress extends GroupedAvp
Defines an interface representing the Originator-Address grouped AVP type. From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V7.9.0) specification:7.2.73 Originator-Address AVP The Originator-Address AVP (AVP code 886) is of type Grouped. Its purpose is to identify the originator of a MM. It has the following ABNF grammar: Originator-Address ::= < AVP Header: 886 > [ Address-Type ] [ Address-Data ] [ Address-Domain ]
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 String
getAddressData()
Returns the value of the Address-Data AVP, of type UTF8String.AddressDomain
getAddressDomain()
Returns the value of the Address-Domain AVP, of type Grouped.AddressType
getAddressType()
Returns the value of the Address-Type AVP, of type Enumerated.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.boolean
hasAddressData()
Returns true if the Address-Data AVP is present in the Originator-Address AVP.boolean
hasAddressDomain()
Returns true if the Address-Domain AVP is present in the Originator-Address AVP.boolean
hasAddressType()
Returns true if the Address-Type AVP is present in the Originator-Address AVP.void
removeAddressData()
Removes the Address-Data AVP from the Originator-Address AVP.void
removeAddressDomain()
Removes the Address-Domain AVP from the Originator-Address AVP.void
removeAddressType()
Removes the Address-Type AVP from the Originator-Address AVP.void
removeExtensionAvps()
Removes all extension AVPs from the Originator-Address AVP.void
setAddressData(String addressData)
Sets the value of the Address-Data AVP, of type UTF8String.void
setAddressDomain(AddressDomain addressDomain)
Sets the value of the Address-Domain AVP, of type Grouped.void
setAddressType(AddressType addressType)
Sets the value of the Address-Type AVP, of type Enumerated.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.-
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
-
hasAddressType
boolean hasAddressType()
Returns true if the Address-Type AVP is present in the Originator-Address AVP.
-
getAddressType
AddressType getAddressType()
Returns the value of the Address-Type AVP, of type Enumerated.- Returns:
- the value of the Address-Type AVP, or null if it has not been set.
-
setAddressType
void setAddressType(AddressType addressType)
Sets the value of the Address-Type AVP, of type Enumerated.- Throws:
NullPointerException
- ifaddressType
isnull
.
-
removeAddressType
void removeAddressType()
Removes the Address-Type AVP from the Originator-Address AVP. If the Address-Type AVP is not present, this method returns silently.
-
hasAddressData
boolean hasAddressData()
Returns true if the Address-Data AVP is present in the Originator-Address AVP.
-
getAddressData
String getAddressData()
Returns the value of the Address-Data AVP, of type UTF8String.- Returns:
- the value of the Address-Data AVP, or null if it has not been set.
-
setAddressData
void setAddressData(String addressData)
Sets the value of the Address-Data AVP, of type UTF8String.- Throws:
NullPointerException
- ifaddressData
isnull
.
-
removeAddressData
void removeAddressData()
Removes the Address-Data AVP from the Originator-Address AVP. If the Address-Data AVP is not present, this method returns silently.
-
hasAddressDomain
boolean hasAddressDomain()
Returns true if the Address-Domain AVP is present in the Originator-Address AVP.
-
getAddressDomain
AddressDomain getAddressDomain()
Returns the value of the Address-Domain AVP, of type Grouped.- Returns:
- the value of the Address-Domain AVP, or null if it has not been set.
-
setAddressDomain
void setAddressDomain(AddressDomain addressDomain)
Sets the value of the Address-Domain AVP, of type Grouped.- Throws:
NullPointerException
- ifaddressDomain
isnull
.
-
removeAddressDomain
void removeAddressDomain()
Removes the Address-Domain AVP from the Originator-Address AVP. If the Address-Domain 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 Originator-Address 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 Originator-Address 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 Originator-Address AVP. If no extension AVPs are present, this method returns silently.
-
-