public interface RoutingFilter extends GroupedAvp
5.3.72 Routing-Filter The Routing-Filter AVP (AVP code 1078) is of type Grouped and is sent from the PCEF to the PCRF. This AVP contains the information for a single routing filter. The Routing-Filter AVP shall include the Flow-Direction AVP with value set to "BIDIRECTIONAL". The direction information contained in the Flow-Description AVP shall be "out". The routing filter may be wild carded by omitting ToS-Traffice-Class AVP, Security-Parameter-Index AVP, and Flow- Label AVP, setting Flow-Direction AVP to the value "BIDIRECTIONAL", setting Flow-Description AVP to the value "permit out ip from any to any". The Routing-Filter AVP may also include the Type-of-Service/Traffic Class, the IPSec SPI, and the Flow Label. The values of these AVPs are obtained from the routing information provided to the PCEF. AVP Format: Routing-Filter ::= < AVP Header: 1078 > { Flow-Description } { Flow-Direction } [ ToS-Traffic-Class ] [ Security-Parameter-Index ] [ Flow-Label ] *[ AVP ]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
IPFilterRule |
getFlowDescription()
Returns the value of the Flow-Description AVP, of type IPFilterRule.
|
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.
|
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 |
hasFlowDescription()
Returns true if the Flow-Description AVP is present in the Routing-Filter AVP.
|
boolean |
hasFlowDirection()
Returns true if the Flow-Direction AVP is present in the Routing-Filter AVP.
|
boolean |
hasFlowLabel()
Returns true if the Flow-Label AVP is present in the Routing-Filter AVP.
|
boolean |
hasSecurityParameterIndex()
Returns true if the Security-Parameter-Index AVP is present in the Routing-Filter AVP.
|
boolean |
hasTosTrafficClass()
Returns true if the ToS-Traffic-Class AVP is present in the Routing-Filter AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Routing-Filter AVP.
|
void |
removeFlowDescription()
Removes the Flow-Description AVP from the Routing-Filter AVP.
|
void |
removeFlowDirection()
Removes the Flow-Direction AVP from the Routing-Filter AVP.
|
void |
removeFlowLabel()
Removes the Flow-Label AVP from the Routing-Filter AVP.
|
void |
removeSecurityParameterIndex()
Removes the Security-Parameter-Index AVP from the Routing-Filter AVP.
|
void |
removeTosTrafficClass()
Removes the ToS-Traffic-Class AVP from the Routing-Filter AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setFlowDescription(IPFilterRule flowDescription)
Sets the value of the Flow-Description AVP, of type IPFilterRule.
|
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 |
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 hasFlowDescription()
IPFilterRule getFlowDescription()
void setFlowDescription(IPFilterRule flowDescription)
java.lang.NullPointerException
- if flowDescription
is null
.void removeFlowDescription()
boolean hasFlowDirection()
FlowDirection getFlowDirection()
void setFlowDirection(FlowDirection flowDirection)
java.lang.NullPointerException
- if flowDirection
is null
.void removeFlowDirection()
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()
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()