Interface ServiceInformation

  • All Superinterfaces:
    Cloneable, DiameterAvp, GroupedAvp

    public interface ServiceInformation
    extends GroupedAvp
    Defines an interface representing the Service-Information grouped AVP type. From the Diameter Ro Reference Point Protocol Details (3GPP TS 32.299 V7.9.0) specification:
     7.2.108     Service-Information AVP
     
     The Service-Information AVP (AVP code 873) is of type Grouped. Its purpose
     is to allow the transmission of additional 3GPP service specific
     information elements which are not described in this document.
     It has the following ABNF grammar:
     
         Service-Information ::=  < AVP Header: 873>
                                    [ Subscription-Id ]
                                    [ PS-Information ]
                                    [ WLAN-Information ]
                                    [ IMS-Information ]
                                    [ MMS-Information ]
                                    [ LCS-Information ]
                                    [ PoC-Information ]
                                    [ MBMS-Information ]
                                    [ Service-Generic-Information ]
                                  * [ AVP ]
     The format and the contents of the fields inside the Service-Information
     AVP are specified in the middle-tier documents which are applicable for the
     specific service. Note that the formats of the fields are service-specific,
     i.e. the format will be different for the various services.
     Further fields may be included in the Service-Information AVP when new
     services are introduced.
     
     
    • Method Detail

      • hasSubscriptionId

        boolean hasSubscriptionId()
        Returns true if the Subscription-Id AVP is present in the Service-Information AVP.
      • getSubscriptionId

        SubscriptionId getSubscriptionId()
        Returns the value of the Subscription-Id AVP, of type Grouped.
        Returns:
        the value of the Subscription-Id AVP, or null if it has not been set.
      • setSubscriptionId

        void setSubscriptionId​(SubscriptionId subscriptionId)
        Sets the value of the Subscription-Id AVP, of type Grouped.
        Throws:
        NullPointerException - if subscriptionId is null.
      • removeSubscriptionId

        void removeSubscriptionId()
        Removes the Subscription-Id AVP from the Service-Information AVP. If the Subscription-Id AVP is not present, this method returns silently.
      • hasPsInformation

        boolean hasPsInformation()
        Returns true if the PS-Information AVP is present in the Service-Information AVP.
      • getPsInformation

        PsInformation getPsInformation()
        Returns the value of the PS-Information AVP, of type Grouped.
        Returns:
        the value of the PS-Information AVP, or null if it has not been set.
      • setPsInformation

        void setPsInformation​(PsInformation psInformation)
        Sets the value of the PS-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if psInformation is null.
      • removePsInformation

        void removePsInformation()
        Removes the PS-Information AVP from the Service-Information AVP. If the PS-Information AVP is not present, this method returns silently.
      • hasWlanInformation

        boolean hasWlanInformation()
        Returns true if the WLAN-Information AVP is present in the Service-Information AVP.
      • getWlanInformation

        WlanInformation getWlanInformation()
        Returns the value of the WLAN-Information AVP, of type Grouped.
        Returns:
        the value of the WLAN-Information AVP, or null if it has not been set.
      • setWlanInformation

        void setWlanInformation​(WlanInformation wlanInformation)
        Sets the value of the WLAN-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if wlanInformation is null.
      • removeWlanInformation

        void removeWlanInformation()
        Removes the WLAN-Information AVP from the Service-Information AVP. If the WLAN-Information AVP is not present, this method returns silently.
      • hasImsInformation

        boolean hasImsInformation()
        Returns true if the IMS-Information AVP is present in the Service-Information AVP.
      • getImsInformation

        ImsInformation getImsInformation()
        Returns the value of the IMS-Information AVP, of type Grouped.
        Returns:
        the value of the IMS-Information AVP, or null if it has not been set.
      • setImsInformation

        void setImsInformation​(ImsInformation imsInformation)
        Sets the value of the IMS-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if imsInformation is null.
      • removeImsInformation

        void removeImsInformation()
        Removes the IMS-Information AVP from the Service-Information AVP. If the IMS-Information AVP is not present, this method returns silently.
      • hasMmsInformation

        boolean hasMmsInformation()
        Returns true if the MMS-Information AVP is present in the Service-Information AVP.
      • getMmsInformation

        MmsInformation getMmsInformation()
        Returns the value of the MMS-Information AVP, of type Grouped.
        Returns:
        the value of the MMS-Information AVP, or null if it has not been set.
      • setMmsInformation

        void setMmsInformation​(MmsInformation mmsInformation)
        Sets the value of the MMS-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if mmsInformation is null.
      • removeMmsInformation

        void removeMmsInformation()
        Removes the MMS-Information AVP from the Service-Information AVP. If the MMS-Information AVP is not present, this method returns silently.
      • hasLcsInformation

        boolean hasLcsInformation()
        Returns true if the LCS-Information AVP is present in the Service-Information AVP.
      • getLcsInformation

        LcsInformation getLcsInformation()
        Returns the value of the LCS-Information AVP, of type Grouped.
        Returns:
        the value of the LCS-Information AVP, or null if it has not been set.
      • setLcsInformation

        void setLcsInformation​(LcsInformation lcsInformation)
        Sets the value of the LCS-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if lcsInformation is null.
      • removeLcsInformation

        void removeLcsInformation()
        Removes the LCS-Information AVP from the Service-Information AVP. If the LCS-Information AVP is not present, this method returns silently.
      • hasPocInformation

        boolean hasPocInformation()
        Returns true if the PoC-Information AVP is present in the Service-Information AVP.
      • getPocInformation

        PocInformation getPocInformation()
        Returns the value of the PoC-Information AVP, of type Grouped.
        Returns:
        the value of the PoC-Information AVP, or null if it has not been set.
      • setPocInformation

        void setPocInformation​(PocInformation pocInformation)
        Sets the value of the PoC-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if pocInformation is null.
      • removePocInformation

        void removePocInformation()
        Removes the PoC-Information AVP from the Service-Information AVP. If the PoC-Information AVP is not present, this method returns silently.
      • hasMbmsInformation

        boolean hasMbmsInformation()
        Returns true if the MBMS-Information AVP is present in the Service-Information AVP.
      • getMbmsInformation

        MbmsInformation getMbmsInformation()
        Returns the value of the MBMS-Information AVP, of type Grouped.
        Returns:
        the value of the MBMS-Information AVP, or null if it has not been set.
      • setMbmsInformation

        void setMbmsInformation​(MbmsInformation mbmsInformation)
        Sets the value of the MBMS-Information AVP, of type Grouped.
        Throws:
        NullPointerException - if mbmsInformation is null.
      • removeMbmsInformation

        void removeMbmsInformation()
        Removes the MBMS-Information AVP from the Service-Information AVP. If the MBMS-Information AVP is not present, this method returns silently.
      • hasServiceGenericInformation

        boolean hasServiceGenericInformation()
        Returns true if the Service-Generic-Information AVP is present in the Service-Information AVP.
      • getServiceGenericInformation

        byte[] getServiceGenericInformation()
        Returns the value of the Service-Generic-Information AVP, of type OctetString.
        Returns:
        the value of the Service-Generic-Information AVP, or null if it has not been set.
      • setServiceGenericInformation

        void setServiceGenericInformation​(byte[] serviceGenericInformation)
        Sets the value of the Service-Generic-Information AVP, of type OctetString.
        Throws:
        NullPointerException - if serviceGenericInformation is null.
      • removeServiceGenericInformation

        void removeServiceGenericInformation()
        Removes the Service-Generic-Information AVP from the Service-Information AVP. If the Service-Generic-Information 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 Service-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 Service-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 - if avps is null.
      • removeExtensionAvps

        void removeExtensionAvps()
        Removes all extension AVPs from the Service-Information AVP. If no extension AVPs are present, this method returns silently.