KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jndi > browser > model > jms > TextMessageProxy


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.jndi.browser.model.jms;
8
9 import javax.jms.JMSException JavaDoc;
10 import javax.jms.Message JavaDoc;
11 import javax.jms.TextMessage JavaDoc;
12
13 /**
14  * Description of the Class
15  *
16  * @author letiemble
17  * @created 13 décembre 2001
18  * @version $Revision: 1.2 $
19  * @todo Javadoc to complete
20  * @javabean:class displayName="JMS Text Message" shortDescription="JMS Text Message"
21  * @javabean:icons color16="toolbarButtonGraphics/general/File16.gif"
22  * @javabean:property name="correlationId"
23  * class="java.lang.String"
24  * displayName="Correlation Id"
25  * shortDescription="Correlation Id"
26  * @javabean:property name="deliveryMode"
27  * class="int"
28  * displayName="Delivery Mode"
29  * shortDescription="Delivery Mode"
30  * propertyEditor="org.ejtools.jndibrowser.model.jms.DeliveryModeEditor"
31  * @javabean:property name="expiration"
32  * class="long"
33  * displayName="Expiration"
34  * shortDescription="Expiration"
35  * propertyEditor="org.ejtools.awt.editors.DateTimeEditor"
36  * @javabean:property name="messageId"
37  * class="java.lang.String"
38  * displayName="Message Id"
39  * shortDescription="Message Id"
40  * @javabean:property name="priority"
41  * class="int"
42  * displayName="Priority"
43  * shortDescription="Priority"
44  * @javabean:property name="redelivered"
45  * class="boolean"
46  * displayName="Is redelivered"
47  * shortDescription="Is redelivered"
48  * @javabean:property name="timestamp"
49  * class="java.util.Date"
50  * displayName="TimeStamp"
51  * shortDescription="TimeStamp"
52  * propertyEditor="org.ejtools.awt.editors.DateTimeEditor"
53  * @javabean:property name="type"
54  * class="java.lang.String"
55  * displayName="Type"
56  * shortDescription="Type"
57  * @javabean:property name="text"
58  * class="java.lang.String"
59  * displayName="Text"
60  * shortDescription="Text of the message"
61  * propertyEditor="com.dreambean.awt.editors.TextEditor"
62  */

63 public class TextMessageProxy extends MessageProxy
64 {
65    /**
66     * Constructor for the MessageProxy object
67     *
68     * @param message Description of Parameter
69     */

70    public TextMessageProxy(Message JavaDoc message)
71    {
72       super(message);
73    }
74
75
76    /**
77     * Gets the text attribute of the JMSMessage object
78     *
79     * @return The text value
80     * @exception JMSException Description of Exception
81     */

82    public String JavaDoc getText()
83       throws JMSException JavaDoc
84    {
85       return ((TextMessage JavaDoc) message).getText();
86    }
87 }
88
89
Popular Tags