Package com.opencloud.sentinel.util
Class OpenCloudDiameter
- java.lang.Object
-
- com.opencloud.sentinel.util.OpenCloudDiameter
-
public class OpenCloudDiameter extends java.lang.Object
Utility class for inspecting Diameter messages.
-
-
Field Summary
Fields Modifier and Type Field Description static int
OPENCLOUD_DIAMETER_VENDOR_ID
OpenCloud's own diameter vendor id
-
Constructor Summary
Constructors Constructor Description OpenCloudDiameter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
ccaHasOpenCloudResult(org.jainslee.resources.diameter.ro.types.vcb0.CreditControlAnswer latestOcsAnswer)
Determines if the supplied CreditControlAnswer contains the OpenCloud vendor ID in an ExperimentalResult AVP.static int
getOpenCloudResult(org.jainslee.resources.diameter.ro.types.vcb0.CreditControlAnswer latestOcsAnswer)
Gets the OpenCloud result code from the supplied CreditControlAnswer if it contains the OpenCloud vendor ID in an ExperimentalResult AVP.
-
-
-
Field Detail
-
OPENCLOUD_DIAMETER_VENDOR_ID
public static final int OPENCLOUD_DIAMETER_VENDOR_ID
OpenCloud's own diameter vendor id- See Also:
- Constant Field Values
-
-
Method Detail
-
ccaHasOpenCloudResult
public static boolean ccaHasOpenCloudResult(org.jainslee.resources.diameter.ro.types.vcb0.CreditControlAnswer latestOcsAnswer)
Determines if the supplied CreditControlAnswer contains the OpenCloud vendor ID in an ExperimentalResult AVP.- Parameters:
latestOcsAnswer
- CreditControlAnswer to inspect.- Returns:
- true if the CreditControlAnswer ExperimentalResult AVPs contains the OpenCloud vendor ID, otherwise false.
-
getOpenCloudResult
public static int getOpenCloudResult(org.jainslee.resources.diameter.ro.types.vcb0.CreditControlAnswer latestOcsAnswer)
Gets the OpenCloud result code from the supplied CreditControlAnswer if it contains the OpenCloud vendor ID in an ExperimentalResult AVP.- Parameters:
latestOcsAnswer
- CreditControlAnswer to inspect.- Returns:
- the ExperimentalResultCode for the OpenCloud ExperimentalResult AVP.
- Throws:
java.lang.IllegalArgumentException
- if there isn't an OpenCloud ExperimentalResult AVP.
-
-