Interface NniInformation
-
- All Superinterfaces:
Cloneable,DiameterAvp,GroupedAvp
public interface NniInformation extends GroupedAvp
Defines an interface representing the NNI-Information grouped AVP type. From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V12.11.0) specification:7.2.112 A NNI-Information AVP The NNI-Information AVP (AVP code 2703) is of type Grouped and holds information about the NNI used for interconnection and roaming. It has the following ABNF grammar: NNI-Information ::= < AVP Header: 2703> [ Session-Direction ] [ NNI-Type ] [ Relationship-Mode ] [ Neighbour-Node-Address ]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 DiameterAvp[]getExtensionAvps()Returns the set of extension AVPs.AddressgetNeighbourNodeAddress()Returns the value of the Neighbour-Node-Address AVP, of type Address.NniTypegetNniType()Returns the value of the NNI-Type AVP, of type Enumerated.RelationshipModegetRelationshipMode()Returns the value of the Relationship-Mode AVP, of type Enumerated.SessionDirectiongetSessionDirection()Returns the value of the Session-Direction AVP, of type Enumerated.booleanhasNeighbourNodeAddress()Returns true if the Neighbour-Node-Address AVP is present in the NNI-Information AVP.booleanhasNniType()Returns true if the NNI-Type AVP is present in the NNI-Information AVP.booleanhasRelationshipMode()Returns true if the Relationship-Mode AVP is present in the NNI-Information AVP.booleanhasSessionDirection()Returns true if the Session-Direction AVP is present in the NNI-Information AVP.voidremoveExtensionAvps()Removes all extension AVPs from the NNI-Information AVP.voidremoveNeighbourNodeAddress()Removes the Neighbour-Node-Address AVP from the NNI-Information AVP.voidremoveNniType()Removes the NNI-Type AVP from the NNI-Information AVP.voidremoveRelationshipMode()Removes the Relationship-Mode AVP from the NNI-Information AVP.voidremoveSessionDirection()Removes the Session-Direction AVP from the NNI-Information AVP.voidsetExtensionAvps(DiameterAvp[] avps)Sets the set of extension AVPs with all the values in the given array.voidsetNeighbourNodeAddress(Address neighbourNodeAddress)Sets the value of the Neighbour-Node-Address AVP, of type Address.voidsetNniType(NniType nniType)Sets the value of the NNI-Type AVP, of type Enumerated.voidsetRelationshipMode(RelationshipMode relationshipMode)Sets the value of the Relationship-Mode AVP, of type Enumerated.voidsetSessionDirection(SessionDirection sessionDirection)Sets the value of the Session-Direction AVP, of type Enumerated.-
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
-
hasSessionDirection
boolean hasSessionDirection()
Returns true if the Session-Direction AVP is present in the NNI-Information AVP.
-
getSessionDirection
SessionDirection getSessionDirection()
Returns the value of the Session-Direction AVP, of type Enumerated.- Returns:
- the value of the Session-Direction AVP, or null if it has not been set.
-
setSessionDirection
void setSessionDirection(SessionDirection sessionDirection)
Sets the value of the Session-Direction AVP, of type Enumerated.- Throws:
NullPointerException- ifsessionDirectionisnull.
-
removeSessionDirection
void removeSessionDirection()
Removes the Session-Direction AVP from the NNI-Information AVP. If the Session-Direction AVP is not present, this method returns silently.
-
hasNniType
boolean hasNniType()
Returns true if the NNI-Type AVP is present in the NNI-Information AVP.
-
getNniType
NniType getNniType()
Returns the value of the NNI-Type AVP, of type Enumerated.- Returns:
- the value of the NNI-Type AVP, or null if it has not been set.
-
setNniType
void setNniType(NniType nniType)
Sets the value of the NNI-Type AVP, of type Enumerated.- Throws:
NullPointerException- ifnniTypeisnull.
-
removeNniType
void removeNniType()
Removes the NNI-Type AVP from the NNI-Information AVP. If the NNI-Type AVP is not present, this method returns silently.
-
hasRelationshipMode
boolean hasRelationshipMode()
Returns true if the Relationship-Mode AVP is present in the NNI-Information AVP.
-
getRelationshipMode
RelationshipMode getRelationshipMode()
Returns the value of the Relationship-Mode AVP, of type Enumerated.- Returns:
- the value of the Relationship-Mode AVP, or null if it has not been set.
-
setRelationshipMode
void setRelationshipMode(RelationshipMode relationshipMode)
Sets the value of the Relationship-Mode AVP, of type Enumerated.- Throws:
NullPointerException- ifrelationshipModeisnull.
-
removeRelationshipMode
void removeRelationshipMode()
Removes the Relationship-Mode AVP from the NNI-Information AVP. If the Relationship-Mode AVP is not present, this method returns silently.
-
hasNeighbourNodeAddress
boolean hasNeighbourNodeAddress()
Returns true if the Neighbour-Node-Address AVP is present in the NNI-Information AVP.
-
getNeighbourNodeAddress
Address getNeighbourNodeAddress()
Returns the value of the Neighbour-Node-Address AVP, of type Address.- Returns:
- the value of the Neighbour-Node-Address AVP, or null if it has not been set.
-
setNeighbourNodeAddress
void setNeighbourNodeAddress(Address neighbourNodeAddress)
Sets the value of the Neighbour-Node-Address AVP, of type Address.- Throws:
NullPointerException- ifneighbourNodeAddressisnull.
-
removeNeighbourNodeAddress
void removeNeighbourNodeAddress()
Removes the Neighbour-Node-Address AVP from the NNI-Information AVP. If the Neighbour-Node-Address 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 NNI-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 NNI-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- ifavpsisnull.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the NNI-Information AVP. If no extension AVPs are present, this method returns silently.
-
-