java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.levigo.jadice.web.transport.client.messaging.Message

public class Message extends com.google.gwt.core.client.JavaScriptObject
Represents an actual JSON payload sent via the server connection. It includes three parts: - A message name, determining the purpose. - A conversation id, which is always set by the client. Responses to that specific request will use the same ID. - A dynamic payload; its type is inferred via the message name.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Message
    create(String msgName, com.google.gwt.core.client.JavaScriptObject payload)
     
    static Message
    create(String msgName, com.google.gwt.core.client.JavaScriptObject payload, int conversationId)
     
    static Message
    create(String msgName, Object payload, com.google.gwt.core.client.JavaScriptObject documentSnapshot)
     
    static Message
    create(String msgName, Object payload, com.google.gwt.core.client.JavaScriptObject documentSnapshot, int conversationId)
     
    final int
     
    final String
     
    final com.google.gwt.core.client.JavaScriptObject
     
    final String
     
    final void
     
    final void
    setPayload(com.google.gwt.core.client.JavaScriptObject payload)
     

    Methods inherited from class com.google.gwt.core.client.JavaScriptObject

    cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Message

      protected Message()
  • Method Details

    • getMessageName

      public final String getMessageName()
    • setMessageName

      public final void setMessageName(String msgName)
    • getPayload

      public final com.google.gwt.core.client.JavaScriptObject getPayload()
    • setPayload

      public final void setPayload(com.google.gwt.core.client.JavaScriptObject payload)
    • serialize

      public final String serialize()
    • getConversationId

      public final int getConversationId()
    • create

      public static Message create(String msgName, com.google.gwt.core.client.JavaScriptObject payload)
    • create

      public static Message create(String msgName, Object payload, com.google.gwt.core.client.JavaScriptObject documentSnapshot)
    • create

      public static Message create(String msgName, com.google.gwt.core.client.JavaScriptObject payload, int conversationId)
    • create

      public static Message create(String msgName, Object payload, com.google.gwt.core.client.JavaScriptObject documentSnapshot, int conversationId)