public class JmsWebTextMsg extends JmsWebMsg
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEXT_MESSAGE
Message type text
|
Constructor and Description |
---|
JmsWebTextMsg(java.lang.String target,
java.lang.String content)
Constructor
|
JmsWebTextMsg(java.lang.String destination,
java.lang.String target,
java.lang.String content)
Constructor
|
JmsWebTextMsg(java.lang.String destination,
java.lang.String target,
java.lang.String content,
long messageID)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData()
Get data as Object
|
javax.jms.Message |
getJmsMessage(javax.jms.Session session)
Given a JMS session, return new JMS message for this web message.
|
getDestination, getJmsDeliveryMode, getJmsPriority, getJmsTimeToLive, getMessageID, getMessageType, getTarget, setDestination, setJmsDeliveryMode, setJmsPriority, setJmsTimeToLive, setTarget
public static final java.lang.String TEXT_MESSAGE
public JmsWebTextMsg(java.lang.String target, java.lang.String content)
target
- Target to send message to.content
- String content to sendpublic JmsWebTextMsg(java.lang.String destination, java.lang.String target, java.lang.String content)
destination
- Destination (SIBus specific)target
- target to send message to.content
- Content to send.public JmsWebTextMsg(java.lang.String destination, java.lang.String target, java.lang.String content, long messageID)
destination
- Destination is SIBus specific.target
- target to send message to.content
- content to send.messageID
- message for message.public java.lang.Object getData()
JmsWebMsg
getData
in interface WebMessage
getData
in class JmsWebMsg
JmsWebMsg:getData
public javax.jms.Message getJmsMessage(javax.jms.Session session) throws javax.jms.JMSException
JmsWebMsg
getJmsMessage
in class JmsWebMsg
session
- Existing JMS session.javax.jms.JMSException
- If error creating message.JmsWebMsg:getJmsMessage