com.ibm.websphere.webmsg.publisher.jndijms
Class JmsWebTextMsg

java.lang.Object
  extended by com.ibm.websphere.webmsg.publisher.jndijms.JmsWebMsg
      extended by com.ibm.websphere.webmsg.publisher.jndijms.JmsWebTextMsg
All Implemented Interfaces:
WebMessage
Direct Known Subclasses:
BayeuxJmsTextMsg

public class JmsWebTextMsg
extends JmsWebMsg

WebMsg implementation to send Text over JMS


Field Summary
static java.lang.String TEXT_MESSAGE
          Message type text
 
Constructor Summary
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
 
Method Summary
 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.
 
Methods inherited from class com.ibm.websphere.webmsg.publisher.jndijms.JmsWebMsg
getDestination, getJmsDeliveryMode, getJmsPriority, getJmsTimeToLive, getMessageID, getMessageType, getTarget, setDestination, setJmsDeliveryMode, setJmsPriority, setJmsTimeToLive, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_MESSAGE

public static final java.lang.String TEXT_MESSAGE
Message type text

See Also:
Constant Field Values
Constructor Detail

JmsWebTextMsg

public JmsWebTextMsg(java.lang.String target,
                     java.lang.String content)
Constructor

Parameters:
target - Target to send message to.
content - String content to send

JmsWebTextMsg

public JmsWebTextMsg(java.lang.String destination,
                     java.lang.String target,
                     java.lang.String content)
Constructor

Parameters:
destination - Destination (SIBus specific)
target - target to send message to.
content - Content to send.

JmsWebTextMsg

public JmsWebTextMsg(java.lang.String destination,
                     java.lang.String target,
                     java.lang.String content,
                     long messageID)
Constructor

Parameters:
destination - Destination is SIBus specific.
target - target to send message to.
content - content to send.
messageID - message for message.
Method Detail

getData

public java.lang.Object getData()
Description copied from class: JmsWebMsg
Get data as Object

Specified by:
getData in interface WebMessage
Specified by:
getData in class JmsWebMsg
Returns:
the data attached to the message as a Java Object.
See Also:
JmsWebMsg:getData

getJmsMessage

public javax.jms.Message getJmsMessage(javax.jms.Session session)
                                throws javax.jms.JMSException
Description copied from class: JmsWebMsg
Given a JMS session, return new JMS message for this web message.

Specified by:
getJmsMessage in class JmsWebMsg
Parameters:
session - Existing JMS session.
Returns:
JMS Message
Throws:
javax.jms.JMSException - If error creating message.
See Also:
JmsWebMsg:getJmsMessage