|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FinalUnitIndicationAvp
<b>8.34. Final-Unit-Indication AVP</b>
The Final-Unit-Indication AVP (AVP Code 430) is of type Grouped and
indicates that the Granted-Service-Unit AVP in the Credit-Control-
Answer, or in the AA answer, contains the final units for the
service. After these units have expired, the Diameter credit-control
client is responsible for executing the action indicated in the
Final-Unit-Action AVP (see section 5.6).
If more than one unit type is received in the Credit-Control-Answer,
the unit type that first expired SHOULD cause the credit-control
client to execute the specified action.
In the first interrogation, the Final-Unit-Indication AVP with
Final-Unit-Action REDIRECT or RESTRICT_ACCESS can also be present
with no Granted-Service-Unit AVP in the Credit-Control-Answer or in
the AA answer. This indicates to the Diameter credit-control client
to execute the specified action immediately. If the home service
provider policy is to terminate the service, naturally, the server
SHOULD return the appropriate transient failure (see section 9.1) in
order to implement the policy-defined action.
The Final-Unit-Action AVP defines the behavior of the service element
when the user's account cannot cover the cost of the service and MUST
always be present if the Final-Unit-Indication AVP is included in a
command.
If the Final-Unit-Action AVP is set to TERMINATE, no other AVPs MUST
be present.
If the Final-Unit-Action AVP is set to REDIRECT at least the
Redirect-Server AVP MUST be present. The Restriction-Filter-Rule AVP
or the Filter-Id AVP MAY be present in the Credit-Control-Answer
message if the user is also allowed to access other services that are
not accessible through the address given in the Redirect-Server AVP.
If the Final-Unit-Action AVP is set to RESTRICT_ACCESS, either the
Restriction-Filter-Rule AVP or the Filter-Id AVP SHOULD be present.
The Filter-Id AVP is defined in [NASREQ]. The Filter-Id AVP can be
used to reference an IP filter list installed in the access device by
means other than the Diameter credit-control application, e.g.,
locally configured or configured by another entity.
The Final-Unit-Indication AVP is defined as follows (per the
grouped-avp-def of RFC 3588 [DIAMBASE]):
Final-Unit-Indication ::= < AVP Header: 430 >
{ Final-Unit-Action }
*[ Restriction-Filter-Rule ]
*[ Filter-Id ]
[ Redirect-Server ]
| Field Summary |
|---|
| Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp |
|---|
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT |
| Method Summary | |
|---|---|
java.lang.String[] |
getFilterIds()
Returns the set of Filter-Id AVPs. |
FinalUnitActionType |
getFinalUnitAction()
Returns the value of the Final-Unit-Action AVP, of type Enumerated. |
RedirectServerAvp |
getRedirectServer()
Returns the value of the Redirect-Server AVP, of type Grouped. |
net.java.slee.resource.diameter.base.events.avp.IPFilterRule[] |
getRestrictionFilterRules()
Returns the set of Restriction-Filter-Rule AVPs. |
boolean |
hasFinalUnitAction()
Returns true if the Final-Unit-Action AVP is present in the message. |
boolean |
hasRedirectServer()
Returns true if the Redirect-Server AVP is present in the message. |
void |
setFilterId(java.lang.String filterId)
Sets a single Filter-Id AVP in the message, of type UTF8String. |
void |
setFilterIds(java.lang.String[] filterIds)
Sets the set of Filter-Id AVPs, with all the values in the given array. |
void |
setFinalUnitAction(FinalUnitActionType finalUnitAction)
Sets the value of the Final-Unit-Action AVP, of type Enumerated. |
void |
setRedirectServer(RedirectServerAvp redirectServer)
Sets the value of the Redirect-Server AVP, of type Grouped. |
void |
setRestrictionFilterRule(net.java.slee.resource.diameter.base.events.avp.IPFilterRule restrictionFilterRule)
Sets the set of Restriction-Filter-Rule AVPs, with all the values in the given array. |
void |
setRestrictionFilterRules(net.java.slee.resource.diameter.base.events.avp.IPFilterRule[] restrictionFilterRules)
Sets the set of Restriction-Filter-Rule AVPs, with all the values in the given array. |
| Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp |
|---|
getExtensionAvps, setExtensionAvps |
| Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp |
|---|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue |
| Method Detail |
|---|
java.lang.String[] getFilterIds()
FinalUnitActionType getFinalUnitAction()
FinalUnitActionType
RedirectServerAvp getRedirectServer()
RedirectServerAvp
net.java.slee.resource.diameter.base.events.avp.IPFilterRule[] getRestrictionFilterRules()
IPFilterRule
boolean hasFinalUnitAction()
boolean hasRedirectServer()
void setFilterId(java.lang.String filterId)
filterId - void setFilterIds(java.lang.String[] filterIds)
filterIds - void setFinalUnitAction(FinalUnitActionType finalUnitAction)
FinalUnitActionType
finalUnitAction - void setRedirectServer(RedirectServerAvp redirectServer)
RedirectServerAvp
redirectServer - void setRestrictionFilterRule(net.java.slee.resource.diameter.base.events.avp.IPFilterRule restrictionFilterRule)
IPFilterRule
restrictionFilterRule - void setRestrictionFilterRules(net.java.slee.resource.diameter.base.events.avp.IPFilterRule[] restrictionFilterRules)
IPFilterRule
restrictionFilterRules -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||