Interface TftPacketFilterInformation

  • All Superinterfaces:
    Cloneable, DiameterAvp, GroupedAvp

    public interface TftPacketFilterInformation
    extends GroupedAvp
    Defines an interface representing the TFT-Packet-Filter-Information grouped AVP type. From the Diameter Gx Reference Point Protocol Details (3GPP TS 29.212 V10.1.0) specification:
     5.3.14  TFT-Packet-Filter-Information
     
         The TFT-Packet-Filter-Information AVP (AVP code 1013) is of type Grouped, and it contains the information from a single TFT packet filter including the evaluation precedence, the filter and the Type-of-Service/Traffic Class sent from the PCEF to the PCRF. The PCEF shall include one TFT-Packet-Filter-Information AVP for each TFT packet filter applicable at a PDP context within each PCC rule request corresponding to that PDP context. TFT-Packet-Filter-Information AVPs are derived from the Traffic Flow Template (TFT) defined in 3GPP TS 24.008 [13].
     
         It has the following ABNF grammar:
     
         TFT-Packet-Filter-Information ::= < AVP Header: 1013 >
                                      [ Precedence ]
                                      [ TFT-Filter ]
                                      [ ToS-Traffic-Class ]
                                      [ Security-Parameter-Index ]
                                      [ Flow-Label ]
                                      [ Flow-Direction ]
                                     *[ AVP ]
     
     
    • Method Detail

      • hasPrecedence

        boolean hasPrecedence()
        Returns true if the Precedence AVP is present in the TFT-Packet-Filter-Information AVP.
      • getPrecedence

        long getPrecedence()
        Returns the value of the Precedence AVP, of type Unsigned32. Use hasPrecedence() to check the existence of this AVP.
        Returns:
        the value of the Precedence AVP
        Throws:
        IllegalStateException - if the Precedence AVP has not been set.
      • setPrecedence

        void setPrecedence​(long precedence)
        Sets the value of the Precedence AVP, of type Unsigned32.
      • removePrecedence

        void removePrecedence()
        Removes the Precedence AVP from the TFT-Packet-Filter-Information AVP. If the Precedence AVP is not present, this method returns silently.
      • hasTftFilter

        boolean hasTftFilter()
        Returns true if the TFT-Filter AVP is present in the TFT-Packet-Filter-Information AVP.
      • getTftFilter

        IPFilterRule getTftFilter()
        Returns the value of the TFT-Filter AVP, of type IPFilterRule.
        Returns:
        the value of the TFT-Filter AVP, or null if it has not been set.
      • setTftFilter

        void setTftFilter​(IPFilterRule tftFilter)
        Sets the value of the TFT-Filter AVP, of type IPFilterRule.
        Throws:
        NullPointerException - if tftFilter is null.
      • removeTftFilter

        void removeTftFilter()
        Removes the TFT-Filter AVP from the TFT-Packet-Filter-Information AVP. If the TFT-Filter AVP is not present, this method returns silently.
      • hasTosTrafficClass

        boolean hasTosTrafficClass()
        Returns true if the ToS-Traffic-Class AVP is present in the TFT-Packet-Filter-Information AVP.
      • getTosTrafficClass

        byte[] getTosTrafficClass()
        Returns the value of the ToS-Traffic-Class AVP, of type OctetString.
        Returns:
        the value of the ToS-Traffic-Class AVP, or null if it has not been set.
      • setTosTrafficClass

        void setTosTrafficClass​(byte[] tosTrafficClass)
        Sets the value of the ToS-Traffic-Class AVP, of type OctetString.
        Throws:
        NullPointerException - if tosTrafficClass is null.
      • removeTosTrafficClass

        void removeTosTrafficClass()
        Removes the ToS-Traffic-Class AVP from the TFT-Packet-Filter-Information AVP. If the ToS-Traffic-Class AVP is not present, this method returns silently.
      • hasSecurityParameterIndex

        boolean hasSecurityParameterIndex()
        Returns true if the Security-Parameter-Index AVP is present in the TFT-Packet-Filter-Information AVP.
      • getSecurityParameterIndex

        byte[] getSecurityParameterIndex()
        Returns the value of the Security-Parameter-Index AVP, of type OctetString.
        Returns:
        the value of the Security-Parameter-Index AVP, or null if it has not been set.
      • setSecurityParameterIndex

        void setSecurityParameterIndex​(byte[] securityParameterIndex)
        Sets the value of the Security-Parameter-Index AVP, of type OctetString.
        Throws:
        NullPointerException - if securityParameterIndex is null.
      • removeSecurityParameterIndex

        void removeSecurityParameterIndex()
        Removes the Security-Parameter-Index AVP from the TFT-Packet-Filter-Information AVP. If the Security-Parameter-Index AVP is not present, this method returns silently.
      • hasFlowLabel

        boolean hasFlowLabel()
        Returns true if the Flow-Label AVP is present in the TFT-Packet-Filter-Information AVP.
      • getFlowLabel

        byte[] getFlowLabel()
        Returns the value of the Flow-Label AVP, of type OctetString.
        Returns:
        the value of the Flow-Label AVP, or null if it has not been set.
      • setFlowLabel

        void setFlowLabel​(byte[] flowLabel)
        Sets the value of the Flow-Label AVP, of type OctetString.
        Throws:
        NullPointerException - if flowLabel is null.
      • removeFlowLabel

        void removeFlowLabel()
        Removes the Flow-Label AVP from the TFT-Packet-Filter-Information AVP. If the Flow-Label AVP is not present, this method returns silently.
      • hasFlowDirection

        boolean hasFlowDirection()
        Returns true if the Flow-Direction AVP is present in the TFT-Packet-Filter-Information AVP.
      • getFlowDirection

        FlowDirection getFlowDirection()
        Returns the value of the Flow-Direction AVP, of type Enumerated.
        Returns:
        the value of the Flow-Direction AVP, or null if it has not been set.
      • setFlowDirection

        void setFlowDirection​(FlowDirection flowDirection)
        Sets the value of the Flow-Direction AVP, of type Enumerated.
        Throws:
        NullPointerException - if flowDirection is null.
      • removeFlowDirection

        void removeFlowDirection()
        Removes the Flow-Direction AVP from the TFT-Packet-Filter-Information AVP. If the Flow-Direction 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 TFT-Packet-Filter-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 TFT-Packet-Filter-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 TFT-Packet-Filter-Information AVP. If no extension AVPs are present, this method returns silently.