Class MessageUtil

java.lang.Object
io.crossbar.autobahn.wamp.utils.MessageUtil

public class MessageUtil
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    MessageUtil()  
  • Method Summary

    Modifier and Type Method Description
    static long parseLong​(java.lang.Object object)
    Parse the supplied object as long.
    static void validateMessage​(java.util.List<java.lang.Object> wmsg, int messageType, java.lang.String messageVerboseName, int length)
    Validate a raw WAMP message object based on supplied criteria.
    static void validateMessage​(java.util.List<java.lang.Object> wmsg, int messageType, java.lang.String messageVerboseName, int lengthMin, int lengthMax)
    Validate a raw WAMP message object based on supplied criteria.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • validateMessage

      public static void validateMessage​(java.util.List<java.lang.Object> wmsg, int messageType, java.lang.String messageVerboseName, int lengthMin, int lengthMax)
      Validate a raw WAMP message object based on supplied criteria.
      Parameters:
      wmsg - wamp message to validate
      messageType - type of the wamp message
      lengthMin - minimum number of items the wamp message is expected to have
      lengthMax - maximum number of items the wamp message is expected to have
    • validateMessage

      public static void validateMessage​(java.util.List<java.lang.Object> wmsg, int messageType, java.lang.String messageVerboseName, int length)
      Validate a raw WAMP message object based on supplied criteria.
      Parameters:
      wmsg - wamp message to validate
      messageType - type of the wamp message
      length - number of items the wamp message is expected to have
    • parseLong

      public static long parseLong​(java.lang.Object object)
      Parse the supplied object as long.
      Parameters:
      object - the object to cast
      Returns:
      long value of the object