org.apache.cactus
Class JmsRequest

java.lang.Object
  extended by org.apache.cactus.JmsRequest
All Implemented Interfaces:
Request

public class JmsRequest
extends java.lang.Object
implements Request

Contains all JMS request data for a test case. It is the data that will be sent to the server redirector and that will be available to the test methods.

Since:
1.4
Version:
$Id$
Author:
Vincent Massol

Constructor Summary
JmsRequest(javax.jms.QueueSession theQueueSession)
           
 
Method Summary
 javax.jms.TextMessage createTextMessage()
          Creates an empty text message.
 javax.jms.TextMessage createTextMessage(java.lang.String theText)
          Creates a text message with a text.
 javax.jms.Message getMessage()
           
 java.lang.String getQueueName()
           
 void setQueueName(java.lang.String theQueueName)
          Sets the Queue name to use to send the JMS message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsRequest

public JmsRequest(javax.jms.QueueSession theQueueSession)
Parameters:
theQueueSession - the JMS Queue Session that we will use to send JMS messages to the server side
Method Detail

createTextMessage

public javax.jms.TextMessage createTextMessage(java.lang.String theText)
Creates a text message with a text.

Parameters:
theText - the text message
Returns:
the created text message

createTextMessage

public javax.jms.TextMessage createTextMessage()
Creates an empty text message.

Returns:
the created text message

getMessage

public javax.jms.Message getMessage()
Returns:
the JMS Message to send

setQueueName

public void setQueueName(java.lang.String theQueueName)
Sets the Queue name to use to send the JMS message.

Parameters:
theQueueName - the JNDI queue name

getQueueName

public java.lang.String getQueueName()
Returns:
the JNDI queue name to use to send the JMS message


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.