Class StringMessage

  • All Implemented Interfaces:
    PlatformMessage, java.io.Serializable, java.lang.Cloneable

    public class StringMessage
    extends AbstractPlatformMessage
    A simple PlatformMessage that holds a string. Client ID is set to a random UUID. This message can be used for very basic testing and message delivery.
    See Also:
    Serialized Form
    • Constructor Detail

      • StringMessage

        public StringMessage()
        The default constructor
      • StringMessage

        public StringMessage​(java.lang.String strArg)
        Constructor with a string message
        Parameters:
        strArg - the string message
      • StringMessage

        public StringMessage​(java.lang.String format,
                             java.lang.Object... args)
        Constructor with a String format and a set of format parameters.
        Parameters:
        format - the format
        args - the format parameters
    • Method Detail

      • getString

        public java.lang.String getString()
        Gets the string
        Returns:
        the string
      • setString

        public void setString​(java.lang.String string)
        Sets the string
        Parameters:
        string - value to set