Interface TwanUserLocationInfo

  • All Superinterfaces:
    Cloneable, DiameterAvp, GroupedAvp

    public interface TwanUserLocationInfo
    extends GroupedAvp
    Defines an interface representing the TWAN-User-Location-Info grouped AVP type. From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V10.0.0) specification:
     7.2.237 C TWAN-User-Location-Info AVP
     
     The TWAN-User-Location-Info AVP (AVP code 2714) is of type Grouped and contains the UE location in a Trusted WLAN Access 
     Network (TWAN):  BSSID and SSID of the access point.
     It has the following ABNF grammar:
     
         TWAN-User-Location-Info ::= < AVP Header: 2714>
                                      { TWAN-SSID }
                                      [ TWAN-BSSID ]
     
    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.
    • Method Detail

      • hasTwanSsid

        boolean hasTwanSsid()
        Returns true if the TWAN-SSID AVP is present in the TWAN-User-Location-Info AVP.
      • getTwanSsid

        String getTwanSsid()
        Returns the value of the TWAN-SSID AVP, of type UTF8String.
        Returns:
        the value of the TWAN-SSID AVP, or null if it has not been set.
      • setTwanSsid

        void setTwanSsid​(String twanSsid)
        Sets the value of the TWAN-SSID AVP, of type UTF8String.
        Throws:
        NullPointerException - if twanSsid is null.
      • removeTwanSsid

        void removeTwanSsid()
        Removes the TWAN-SSID AVP from the TWAN-User-Location-Info AVP. If the TWAN-SSID AVP is not present, this method returns silently.
      • hasTwanBssid

        boolean hasTwanBssid()
        Returns true if the TWAN-BSSID AVP is present in the TWAN-User-Location-Info AVP.
      • getTwanBssid

        String getTwanBssid()
        Returns the value of the TWAN-BSSID AVP, of type UTF8String.
        Returns:
        the value of the TWAN-BSSID AVP, or null if it has not been set.
      • setTwanBssid

        void setTwanBssid​(String twanBssid)
        Sets the value of the TWAN-BSSID AVP, of type UTF8String.
        Throws:
        NullPointerException - if twanBssid is null.
      • removeTwanBssid

        void removeTwanBssid()
        Removes the TWAN-BSSID AVP from the TWAN-User-Location-Info AVP. If the TWAN-BSSID 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 TWAN-User-Location-Info 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 TWAN-User-Location-Info 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 - if avps is null.
      • removeExtensionAvps

        void removeExtensionAvps()
        Removes all extension AVPs from the TWAN-User-Location-Info AVP. If no extension AVPs are present, this method returns silently.