Interface LcsRequestorId

  • All Superinterfaces:
    Cloneable, DiameterAvp, GroupedAvp

    public interface LcsRequestorId
    extends GroupedAvp
    Defines an interface representing the LCS-Requestor-Id grouped AVP type. From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V7.9.0) specification:
     7.2.53      LCS-Requestor-Id AVP
     
     The LCS-Requestor-Id AVP (AVP code 1239) is of type Grouped and contains
     information related to the identification of the Requestor.
     It has the following ABNF grammar:
     
           LCS-Requestor-Id ::=  < AVP Header: 1239 >
                                   [ LCS-Data-Coding-Scheme ]
                                   [ LCS-Requestor-Id-String ]
     
     
    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

      • hasLcsDataCodingScheme

        boolean hasLcsDataCodingScheme()
        Returns true if the LCS-Data-Coding-Scheme AVP is present in the LCS-Requestor-Id AVP.
      • getLcsDataCodingScheme

        String getLcsDataCodingScheme()
        Returns the value of the LCS-Data-Coding-Scheme AVP, of type UTF8String.
        Returns:
        the value of the LCS-Data-Coding-Scheme AVP, or null if it has not been set.
      • setLcsDataCodingScheme

        void setLcsDataCodingScheme​(String lcsDataCodingScheme)
        Sets the value of the LCS-Data-Coding-Scheme AVP, of type UTF8String.
        Throws:
        NullPointerException - if lcsDataCodingScheme is null.
      • removeLcsDataCodingScheme

        void removeLcsDataCodingScheme()
        Removes the LCS-Data-Coding-Scheme AVP from the LCS-Requestor-Id AVP. If the LCS-Data-Coding-Scheme AVP is not present, this method returns silently.
      • hasLcsRequestorIdString

        boolean hasLcsRequestorIdString()
        Returns true if the LCS-Requestor-Id-String AVP is present in the LCS-Requestor-Id AVP.
      • getLcsRequestorIdString

        String getLcsRequestorIdString()
        Returns the value of the LCS-Requestor-Id-String AVP, of type UTF8String.
        Returns:
        the value of the LCS-Requestor-Id-String AVP, or null if it has not been set.
      • setLcsRequestorIdString

        void setLcsRequestorIdString​(String lcsRequestorIdString)
        Sets the value of the LCS-Requestor-Id-String AVP, of type UTF8String.
        Throws:
        NullPointerException - if lcsRequestorIdString is null.
      • removeLcsRequestorIdString

        void removeLcsRequestorIdString()
        Removes the LCS-Requestor-Id-String AVP from the LCS-Requestor-Id AVP. If the LCS-Requestor-Id-String 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 LCS-Requestor-Id 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 LCS-Requestor-Id 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 LCS-Requestor-Id AVP. If no extension AVPs are present, this method returns silently.