Class MessageUtils


  • public class MessageUtils
    extends Object
    Base class for message utility functions.
    • Constructor Detail

      • MessageUtils

        public MessageUtils()
    • Method Detail

      • getProtocolName

        public String getProtocolName()
        Get the base name of the protocol. For example: "CAP", "INAP", etc.
        Returns:
        the base name of the protocol. The default implementation in this class returns "??".
      • getProtocolVariant

        public String getProtocolVariant()
        Get the name of the protocol variant. For example, for CAP: "v1", "v2", etc, for INAP: "ETSI CS1", etc, etc.
        Returns:
        the name of the protocol variant. The default implementation in this class returns "??".
      • isLegTerminatingEvent

        public boolean isLegTerminatingEvent​(Object eventType)
        Determine if the specified event type is a leg terminating event. CAMEL events tCalledPartyBusy and tNoAnswer use the event parameter callForwarded to determine if the event is leg terminating. If you care about this then you must use the two-argument {code #isLegTerminatingEvent(Object, Object)}.
        Parameters:
        eventType - the CAMEL event type e.g. tCalledPartyBusy
        Returns:
        true if the event type is a leg terminating event type, false otherwise. The default implementation in this class always returns false.
      • isLegTerminatingEvent

        public boolean isLegTerminatingEvent​(Object eventType,
                                             Object invokeArgument)
        Determine if the specified event type is a leg terminating event.
        Parameters:
        eventType - the CAMEL event type e.g. tCalledPartyBusy
        invokeArgument - CAMEL events tCalledPartyBusy and tNoAnswer use the event parameter callForwarded to determine if the event is leg terminating.
        Returns:
        true if the event type is a leg terminating event type, false otherwise. The default implementation in this class always returns false.
      • getName

        public String getName​(com.opencloud.slee.resources.cgin.Event event)