org.exolab.jmscts.core
Class MessageContentPopulator
java.lang.Object
|
+--org.exolab.jmscts.core.AbstractMessagePopulator
|
+--org.exolab.jmscts.core.MessageContentPopulator
- All Implemented Interfaces:
- MessagePopulator, java.io.Serializable
- public class MessageContentPopulator
- extends AbstractMessagePopulator
A message populator that populates the body of messages with a string
- Version:
- $Revision: 1.3 $ $Date: 2004/01/31 13:44:24 $
- Author:
- Tim Anderson
- See Also:
- Serialized Form
Constructor Summary |
MessageContentPopulator(java.lang.String content)
Construct an instance with the content to populate messages with |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageContentPopulator
public MessageContentPopulator(java.lang.String content)
- Construct an instance with the content to populate messages with
- Parameters:
content
- the content to populate messages with
populateBytesMessage
public void populateBytesMessage(javax.jms.BytesMessage message)
throws java.lang.Exception
- Populates a BytesMessage
- Overrides:
populateBytesMessage
in class AbstractMessagePopulator
- Parameters:
message
- the message to populate- Throws:
java.lang.Exception
- for any error
populateMapMessage
public void populateMapMessage(javax.jms.MapMessage message)
throws java.lang.Exception
- Populates a MapMessage
- Overrides:
populateMapMessage
in class AbstractMessagePopulator
- Parameters:
message
- the message to populate- Throws:
java.lang.Exception
- for any error
populateObjectMessage
public void populateObjectMessage(javax.jms.ObjectMessage message)
throws java.lang.Exception
- Populates an ObjectMessage
- Overrides:
populateObjectMessage
in class AbstractMessagePopulator
- Parameters:
message
- the message to populate- Throws:
java.lang.Exception
- for any error
populateStreamMessage
public void populateStreamMessage(javax.jms.StreamMessage message)
throws java.lang.Exception
- Populates a StreamMessage
- Overrides:
populateStreamMessage
in class AbstractMessagePopulator
- Parameters:
message
- the message to populate- Throws:
java.lang.Exception
- for any error
populateTextMessage
public void populateTextMessage(javax.jms.TextMessage message)
throws java.lang.Exception
- Populates a TextMessage
- Overrides:
populateTextMessage
in class AbstractMessagePopulator
- Parameters:
message
- the message to populate- Throws:
java.lang.Exception
- for any error
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.