public interface PacketFilterInformation extends GroupedAvp
5.3.56 Packet-Filter-Information The Packet-Filter-Information AVP (AVP code 1061) is of type Grouped, and it contains the information from a single packet filter sent from the PCEF to the PCRF. Depending on the Packet-Filter-Operation included within the CCR command it may include the packet filter identifier, evaluation precedence, filter value, filter direction, Type-of-Service/Traffic Class, the IPSec SPI, and the Flow Label. When the Packet-Filter-Operation AVP included within the CCR command indicates DELETION, only the Packet-Filter-Identifier AVP shall be provided. The Flow-Direction AVP shall be included unless no other AVPs other than Packet-Filter-Identifier AVP are included within the Packet-Filter-Information AVP. See annex B.3.4 for E-UTRAN specific details. AVP Format: Packet-Filter-Information ::= < AVP Header: 1061 > [ Packet-Filter-Identifier ] [ Precedence ] [ Packet-Filter-Content ] [ 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.
|
IPFilterRule |
getPacketFilterContent()
Returns the value of the Packet-Filter-Content AVP, of type IPFilterRule.
|
byte[] |
getPacketFilterIdentifier()
Returns the value of the Packet-Filter-Identifier 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.
|
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 Packet-Filter-Information AVP.
|
boolean |
hasFlowLabel()
Returns true if the Flow-Label AVP is present in the Packet-Filter-Information AVP.
|
boolean |
hasPacketFilterContent()
Returns true if the Packet-Filter-Content AVP is present in the Packet-Filter-Information AVP.
|
boolean |
hasPacketFilterIdentifier()
Returns true if the Packet-Filter-Identifier AVP is present in the Packet-Filter-Information AVP.
|
boolean |
hasPrecedence()
Returns true if the Precedence AVP is present in the Packet-Filter-Information AVP.
|
boolean |
hasSecurityParameterIndex()
Returns true if the Security-Parameter-Index AVP is present in the Packet-Filter-Information AVP.
|
boolean |
hasTosTrafficClass()
Returns true if the ToS-Traffic-Class AVP is present in the Packet-Filter-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Packet-Filter-Information AVP.
|
void |
removeFlowDirection()
Removes the Flow-Direction AVP from the Packet-Filter-Information AVP.
|
void |
removeFlowLabel()
Removes the Flow-Label AVP from the Packet-Filter-Information AVP.
|
void |
removePacketFilterContent()
Removes the Packet-Filter-Content AVP from the Packet-Filter-Information AVP.
|
void |
removePacketFilterIdentifier()
Removes the Packet-Filter-Identifier AVP from the Packet-Filter-Information AVP.
|
void |
removePrecedence()
Removes the Precedence AVP from the Packet-Filter-Information AVP.
|
void |
removeSecurityParameterIndex()
Removes the Security-Parameter-Index AVP from the Packet-Filter-Information AVP.
|
void |
removeTosTrafficClass()
Removes the ToS-Traffic-Class AVP from the 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 |
setPacketFilterContent(IPFilterRule packetFilterContent)
Sets the value of the Packet-Filter-Content AVP, of type IPFilterRule.
|
void |
setPacketFilterIdentifier(byte[] packetFilterIdentifier)
Sets the value of the Packet-Filter-Identifier 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 |
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 hasPacketFilterIdentifier()
byte[] getPacketFilterIdentifier()
void setPacketFilterIdentifier(byte[] packetFilterIdentifier)
java.lang.NullPointerException
- if packetFilterIdentifier
is null
.void removePacketFilterIdentifier()
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 hasPacketFilterContent()
IPFilterRule getPacketFilterContent()
void setPacketFilterContent(IPFilterRule packetFilterContent)
java.lang.NullPointerException
- if packetFilterContent
is null
.void removePacketFilterContent()
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()