Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms
In directory usw-pr-cvs1:/tmp/cvs-serv1308/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms
Added Files:
TextMessageProxy.java
Log Message:
Initial Import
--- NEW FILE: TextMessageProxy.java ---
/*
* EJTools, the Enterprise Java Tools
*
* Distributable under LGPL license.
* See terms of license at www.gnu.org.
*/
package net.sourceforge.ejtools.jndibrowser.model.jms;
// Standard Imports
import java.awt.Component;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.TextMessage;
// Other Imports
import org.apache.log4j.Category;
/**
*Description of the Class
*
* @author letiembl
* @created 13 décembre 2001
* @todo Javadoc to complete
* @todo Add log4j logs
*/
public class TextMessageProxy extends MessageProxy
{
/**
*Constructor for the MessageProxy object
*
* @param name Description of Parameter
* @param message Description of Parameter
*/
public TextMessageProxy(String name, Message message)
{
super(name, message);
}
/**
*Gets the text attribute of the JMSMessage object
*
* @return The text value
* @exception JMSException Description of Exception
*/
public String getText() throws JMSException
{
return ((TextMessage) message).getText();
}
}
|