org.apache.qpid.client.message
Class TestMessageFactory

java.lang.Object
  extended by org.apache.qpid.client.message.TestMessageFactory

public class TestMessageFactory
extends Object


Constructor Summary
TestMessageFactory()
           
 
Method Summary
static String createMessagePayload(int size)
           
static BytesMessage newBytesMessage(Session session, int size)
           
static TextMessage newJMSTextMessage(Session session, int size, String encoding)
           
static ObjectMessage newObjectMessage(Session session, Destination replyDestination, int size, boolean persistent)
          Creates an ObjectMessage with given size and sets the JMS properties (JMSReplyTo and DeliveryMode)
static ObjectMessage newObjectMessage(Session session, int size)
           
static StreamMessage newStreamMessage(Session session, int size)
           
static TextMessage newTextMessage(Session session, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMessageFactory

public TestMessageFactory()
Method Detail

newTextMessage

public static TextMessage newTextMessage(Session session,
                                         int size)
                                  throws JMSException
Throws:
JMSException

newJMSTextMessage

public static TextMessage newJMSTextMessage(Session session,
                                            int size,
                                            String encoding)
                                     throws JMSException
Throws:
JMSException

newBytesMessage

public static BytesMessage newBytesMessage(Session session,
                                           int size)
                                    throws JMSException
Throws:
JMSException

newStreamMessage

public static StreamMessage newStreamMessage(Session session,
                                             int size)
                                      throws JMSException
Throws:
JMSException

newObjectMessage

public static ObjectMessage newObjectMessage(Session session,
                                             int size)
                                      throws JMSException
Throws:
JMSException

newObjectMessage

public static ObjectMessage newObjectMessage(Session session,
                                             Destination replyDestination,
                                             int size,
                                             boolean persistent)
                                      throws JMSException
Creates an ObjectMessage with given size and sets the JMS properties (JMSReplyTo and DeliveryMode)

Parameters:
session -
replyDestination -
size -
persistent -
Returns:
the new ObjectMessage
Throws:
JMSException

createMessagePayload

public static String createMessagePayload(int size)


Licensed to the Apache Software Foundation