public interface TftPacketFilterInformation extends GroupedAvp
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 ]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
FlowDirection |
getFlowDirection()
Returns the value of the Flow-Direction AVP, of type Enumerated.
|
byte[] |
getFlowLabel()
Returns the value of the Flow-Label AVP, of type OctetString.
|
long |
getPrecedence()
Returns the value of the Precedence AVP, of type Unsigned32.
|
byte[] |
getSecurityParameterIndex()
Returns the value of the Security-Parameter-Index AVP, of type OctetString.
|
IPFilterRule |
getTftFilter()
Returns the value of the TFT-Filter AVP, of type IPFilterRule.
|
byte[] |
getTosTrafficClass()
Returns the value of the ToS-Traffic-Class AVP, of type OctetString.
|
boolean |
hasFlowDirection()
Returns true if the Flow-Direction AVP is present in the TFT-Packet-Filter-Information AVP.
|
boolean |
hasFlowLabel()
Returns true if the Flow-Label AVP is present in the TFT-Packet-Filter-Information AVP.
|
boolean |
hasPrecedence()
Returns true if the Precedence AVP is present in the TFT-Packet-Filter-Information AVP.
|
boolean |
hasSecurityParameterIndex()
Returns true if the Security-Parameter-Index AVP is present in the TFT-Packet-Filter-Information AVP.
|
boolean |
hasTftFilter()
Returns true if the TFT-Filter AVP is present in the TFT-Packet-Filter-Information AVP.
|
boolean |
hasTosTrafficClass()
Returns true if the ToS-Traffic-Class AVP is present in the TFT-Packet-Filter-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the TFT-Packet-Filter-Information AVP.
|
void |
removeFlowDirection()
Removes the Flow-Direction AVP from the TFT-Packet-Filter-Information AVP.
|
void |
removeFlowLabel()
Removes the Flow-Label AVP from the TFT-Packet-Filter-Information AVP.
|
void |
removePrecedence()
Removes the Precedence AVP from the TFT-Packet-Filter-Information AVP.
|
void |
removeSecurityParameterIndex()
Removes the Security-Parameter-Index AVP from the TFT-Packet-Filter-Information AVP.
|
void |
removeTftFilter()
Removes the TFT-Filter AVP from the TFT-Packet-Filter-Information AVP.
|
void |
removeTosTrafficClass()
Removes the ToS-Traffic-Class AVP from the TFT-Packet-Filter-Information AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setFlowDirection(FlowDirection flowDirection)
Sets the value of the Flow-Direction AVP, of type Enumerated.
|
void |
setFlowLabel(byte[] flowLabel)
Sets the value of the Flow-Label AVP, of type OctetString.
|
void |
setPrecedence(long precedence)
Sets the value of the Precedence AVP, of type Unsigned32.
|
void |
setSecurityParameterIndex(byte[] securityParameterIndex)
Sets the value of the Security-Parameter-Index AVP, of type OctetString.
|
void |
setTftFilter(IPFilterRule tftFilter)
Sets the value of the TFT-Filter AVP, of type IPFilterRule.
|
void |
setTosTrafficClass(byte[] tosTrafficClass)
Sets the value of the ToS-Traffic-Class AVP, of type OctetString.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasPrecedence()
long getPrecedence()
hasPrecedence()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Precedence AVP has not been set.void setPrecedence(long precedence)
void removePrecedence()
boolean hasTftFilter()
IPFilterRule getTftFilter()
void setTftFilter(IPFilterRule tftFilter)
java.lang.NullPointerException
- if tftFilter
is null
.void removeTftFilter()
boolean hasTosTrafficClass()
byte[] getTosTrafficClass()
void setTosTrafficClass(byte[] tosTrafficClass)
java.lang.NullPointerException
- if tosTrafficClass
is null
.void removeTosTrafficClass()
boolean hasSecurityParameterIndex()
byte[] getSecurityParameterIndex()
void setSecurityParameterIndex(byte[] securityParameterIndex)
java.lang.NullPointerException
- if securityParameterIndex
is null
.void removeSecurityParameterIndex()
boolean hasFlowLabel()
byte[] getFlowLabel()
void setFlowLabel(byte[] flowLabel)
java.lang.NullPointerException
- if flowLabel
is null
.void removeFlowLabel()
boolean hasFlowDirection()
FlowDirection getFlowDirection()
void setFlowDirection(FlowDirection flowDirection)
java.lang.NullPointerException
- if flowDirection
is null
.void removeFlowDirection()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
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)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()