|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tibco.bpm.web.client.model.pagebus.message.PageBusMessage
public class PageBusMessage
Provides a well defined JSON serializable message object that is used for publishing messages to the TIBCO PageBus. For messages published to a ManagedHub or to a cached topic the PageBusMessage must be JSON serializable.
A PageBusMessage consists of a message, a schemaId, and a topic.
PageBusMessageObject
,
PageBusMessageNative
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SCHEMA_ID
|
Constructor Summary | |
---|---|
PageBusMessage()
Constructs instance with: message set to: null schemaId set to: DEFAULT_SCHEMA_ID: "com.tibco.bpm.web.client.model.pagebus.message.PageBusMessage" topic set to: null |
|
PageBusMessage(com.google.gwt.json.client.JSONValue message)
Constructs instance with: schemaId set to: DEFAULT_SCHEMA_ID: "com.tibco.bpm.web.client.model.pagebus.message.PageBusMessage" topic set to: null |
|
PageBusMessage(com.google.gwt.json.client.JSONValue message,
java.lang.String schemaId)
Constructs instance with: topic set to: null |
|
PageBusMessage(com.google.gwt.json.client.JSONValue message,
java.lang.String schemaId,
java.lang.String topic)
Constructor. |
|
PageBusMessage(java.lang.String schemaId,
com.google.gwt.json.client.JSONValue message)
Deprecated. Use: PageBusMessage(JSONValue, String) |
Method Summary | |
---|---|
static PageBusMessage |
createMessage(java.lang.String topic,
com.google.gwt.core.client.JavaScriptObject message)
Creates a PageBusMessage from the given JavaScriptObject. |
com.google.gwt.json.client.JSONValue |
getMessage()
|
PageBusMessageType |
getMessageType()
|
static java.lang.String |
getMessageType(com.google.gwt.core.client.JavaScriptObject message)
|
com.google.gwt.core.client.JavaScriptObject |
getNativeMessage()
|
com.google.gwt.json.client.JSONObject |
getPageBusMessage()
|
java.lang.String |
getSchemaId()
|
java.lang.String |
getStringValue()
|
java.lang.String |
getTopic()
|
void |
setSchemaId(java.lang.String schemaId)
Sets the schemaId value. |
void |
setTopic(java.lang.String topic)
Sets the topic value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_SCHEMA_ID
Constructor Detail |
---|
public PageBusMessage()
public PageBusMessage(com.google.gwt.json.client.JSONValue message)
message
- The message value that will be published. This may be null.public PageBusMessage(java.lang.String schemaId, com.google.gwt.json.client.JSONValue message)
PageBusMessage(JSONValue, String)
schemaId
- An id for the message schema.message
- The message value that will be published. This may be null.public PageBusMessage(com.google.gwt.json.client.JSONValue message, java.lang.String schemaId)
message
- The message value that will be published. This may be null.schemaId
- An id for the message schema.public PageBusMessage(com.google.gwt.json.client.JSONValue message, java.lang.String schemaId, java.lang.String topic)
message
- The message value that will be published. This may be null.schemaId
- An id for the message schema. This may be null. See: setSchemaId(String)
topic
- The topic to publish the message on. This may be null. See: setTopic(String)
Method Detail |
---|
public static final PageBusMessage createMessage(java.lang.String topic, com.google.gwt.core.client.JavaScriptObject message)
topic
- The topic the messagemessage
-
public static final java.lang.String getMessageType(com.google.gwt.core.client.JavaScriptObject message)
public com.google.gwt.core.client.JavaScriptObject getNativeMessage()
public com.google.gwt.json.client.JSONObject getPageBusMessage()
public java.lang.String getTopic()
public void setTopic(java.lang.String topic)
topic
- The value to set. This may be null.public void setSchemaId(java.lang.String schemaId)
schemaId
- The value to set. This may be null.public java.lang.String getSchemaId()
public com.google.gwt.json.client.JSONValue getMessage()
public java.lang.String getStringValue()
public PageBusMessageType getMessageType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |