net.java.slee.resource.diameter.cca.events.avp
Enum DirectDebitingFailureHandlingType
java.lang.Object
java.lang.Enum<DirectDebitingFailureHandlingType>
net.java.slee.resource.diameter.cca.events.avp.DirectDebitingFailureHandlingType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DirectDebitingFailureHandlingType>, net.java.slee.resource.diameter.base.events.avp.Enumerated
public enum DirectDebitingFailureHandlingType
- extends java.lang.Enum<DirectDebitingFailureHandlingType>
- implements net.java.slee.resource.diameter.base.events.avp.Enumerated
8.15. Direct-Debiting-Failure-Handling AVP
The Direct-Debiting-Failure-Handling AVP (AVP Code 428) is of type
Enumerated. The credit-control client uses information in this AVP
to decide what to do if sending credit-control messages (Requested-
Action AVP set to DIRECT_DEBITING) to the credit-control server has
been, for instance, temporarily prevented due to a network problem.
TERMINATE_OR_BUFFER 0
When the Direct-Debiting-Failure-Handling AVP is set to
TERMINATE_OR_BUFFER, the service MUST be granted for as long as
there is a connection to the credit-control server. If the
credit-control client does not receive any Credit-Control-Answer
message within the Tx timer (as defined in section 13) the
credit-control request is regarded as failed. The client SHOULD
terminate the service if it can determine from the failed answer
that units have not been debited. Otherwise the credit-control
client SHOULD grant the service, store the request in application
level non-volatile storage, and try to re-send the request. These
requests MUST be marked as possible duplicates by setting the T-
flag in the command header as described in [DIAMBASE] section 3.
This is the default behavior if the AVP isn't included in the
reply from the authorization server.
CONTINUE 1
When the Direct-Debiting-Failure-Handling AVP is set to CONTINUE,
the service SHOULD be granted, even if credit-control messages
can't be delivered, and the request should be deleted.
- Author:
- Bartosz Baranowski , Alexandre Mendonca
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TERMINATE_OR_BUFFER
public static final DirectDebitingFailureHandlingType TERMINATE_OR_BUFFER
CONTINUE
public static final DirectDebitingFailureHandlingType CONTINUE
values
public static DirectDebitingFailureHandlingType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DirectDebitingFailureHandlingType c : DirectDebitingFailureHandlingType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DirectDebitingFailureHandlingType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getValue
public int getValue()
- Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated
fromInt
public static DirectDebitingFailureHandlingType fromInt(int type)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
Copyright © 2012. All Rights Reserved.