Class Message
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Messagestatic Messagestatic Messagecreate(String msgName, Object payload, com.google.gwt.core.client.JavaScriptObject documentSnapshot) static Messagecreate(String msgName, Object payload, com.google.gwt.core.client.JavaScriptObject documentSnapshot, int conversationId) final intfinal Stringfinal com.google.gwt.core.client.JavaScriptObjectfinal Stringfinal voidsetMessageName(String msgName) final voidsetPayload(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
-
Constructor Details
-
Message
protected Message()
-
-
Method Details
-
getMessageName
-
setMessageName
-
getPayload
public final com.google.gwt.core.client.JavaScriptObject getPayload() -
setPayload
public final void setPayload(com.google.gwt.core.client.JavaScriptObject payload) -
serialize
-
getConversationId
public final int getConversationId() -
create
-
create
-
create
-
create
-