org.apache.commons.jelly.tags.jms
Class TextMessageTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.jms.MessageTag
          extended byorg.apache.commons.jelly.tags.jms.TextMessageTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class TextMessageTag
extends MessageTag

Creates a JMS TextMessage

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
TextMessageTag()
           
 
Method Summary
protected  javax.jms.Message createMessage()
           
 void setText(java.lang.String text)
          Sets the body of the message, a String.
 
Methods inherited from class org.apache.commons.jelly.tags.jms.MessageTag
addProperty, doTag, findConnection, getConnection, getMessage, setConnection, setCorrelationID, setReplyTo, setType, setVar
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextMessageTag

public TextMessageTag()
Method Detail

setText

public void setText(java.lang.String text)
Sets the body of the message, a String. If this value is not set or the value is null then the content of the tag will be used instead.


createMessage

protected javax.jms.Message createMessage()
                                   throws org.apache.commons.jelly.JellyTagException
Overrides:
createMessage in class MessageTag
Throws:
org.apache.commons.jelly.JellyTagException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.