Class OpenCloudDiameter


  • public class OpenCloudDiameter
    extends java.lang.Object
    Utility class for inspecting Diameter messages.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • OpenCloudDiameter

        public OpenCloudDiameter()
    • 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.