FileDocCategorySizeDatePackage
JmsMessage.javaAPI DocJBoss 4.2.17625Fri Jul 13 21:01:16 BST 2007org.jboss.resource.adapter.jms

JmsMessage

public class JmsMessage extends Object implements javax.jms.Message
A wrapper for a message
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
javax.jms.Message
message
The message
JmsSession
session
The session
Constructors Summary
public JmsMessage(javax.jms.Message message, JmsSession session)
Create a new wrapper

param
message the message
param
session the session

      this.message = message;
      this.session = session;
   
Methods Summary
public voidacknowledge()

      session.getSession(); // Check for closed
      message.acknowledge();
   
public voidclearBody()

      message.clearBody();
   
public voidclearProperties()

      message.clearProperties();
   
public booleanequals(java.lang.Object object)

      if (object != null && object instanceof JmsMessage)
         return message.equals(((JmsMessage) object).message);
      else
         return message.equals(object);
   
public booleangetBooleanProperty(java.lang.String name)

      return message.getBooleanProperty(name);
   
public bytegetByteProperty(java.lang.String name)

      return message.getByteProperty(name);
   
public doublegetDoubleProperty(java.lang.String name)

      return message.getDoubleProperty(name);
   
public floatgetFloatProperty(java.lang.String name)

      return message.getFloatProperty(name);
   
public intgetIntProperty(java.lang.String name)

      return message.getIntProperty(name);
   
public java.lang.StringgetJMSCorrelationID()

      return message.getJMSCorrelationID();
   
public byte[]getJMSCorrelationIDAsBytes()

      return message.getJMSCorrelationIDAsBytes();
   
public intgetJMSDeliveryMode()

      return message.getJMSDeliveryMode();
   
public javax.jms.DestinationgetJMSDestination()

      return message.getJMSDestination();
   
public longgetJMSExpiration()

      return message.getJMSExpiration();
   
public java.lang.StringgetJMSMessageID()

      return message.getJMSMessageID();
   
public intgetJMSPriority()

      return message.getJMSPriority();
   
public booleangetJMSRedelivered()

      return message.getJMSRedelivered();
   
public javax.jms.DestinationgetJMSReplyTo()

      return message.getJMSReplyTo();
   
public longgetJMSTimestamp()

      return message.getJMSTimestamp();
   
public java.lang.StringgetJMSType()

      return message.getJMSType();
   
public longgetLongProperty(java.lang.String name)

      return message.getLongProperty(name);
   
public java.lang.ObjectgetObjectProperty(java.lang.String name)

      return message.getObjectProperty(name);
   
public java.util.EnumerationgetPropertyNames()

      return message.getPropertyNames();
   
public shortgetShortProperty(java.lang.String name)

      return message.getShortProperty(name);
   
public java.lang.StringgetStringProperty(java.lang.String name)

      return message.getStringProperty(name);
   
public inthashCode()

      return message.hashCode();
   
public booleanpropertyExists(java.lang.String name)

      return message.propertyExists(name);
   
public voidsetBooleanProperty(java.lang.String name, boolean value)

      message.setBooleanProperty(name, value);
   
public voidsetByteProperty(java.lang.String name, byte value)

      message.setByteProperty(name, value);
   
public voidsetDoubleProperty(java.lang.String name, double value)

      message.setDoubleProperty(name, value);
   
public voidsetFloatProperty(java.lang.String name, float value)

      message.setFloatProperty(name, value);
   
public voidsetIntProperty(java.lang.String name, int value)

      message.setIntProperty(name, value);
   
public voidsetJMSCorrelationID(java.lang.String correlationID)

      message.setJMSCorrelationID(correlationID);
   
public voidsetJMSCorrelationIDAsBytes(byte[] correlationID)

      message.setJMSCorrelationIDAsBytes(correlationID);
   
public voidsetJMSDeliveryMode(int deliveryMode)

      message.setJMSDeliveryMode(deliveryMode);
   
public voidsetJMSDestination(javax.jms.Destination destination)

      message.setJMSDestination(destination);
   
public voidsetJMSExpiration(long expiration)

      message.setJMSExpiration(expiration);
   
public voidsetJMSMessageID(java.lang.String id)

      message.setJMSMessageID(id);
   
public voidsetJMSPriority(int priority)

      message.setJMSPriority(priority);
   
public voidsetJMSRedelivered(boolean redelivered)

      message.setJMSRedelivered(redelivered);
   
public voidsetJMSReplyTo(javax.jms.Destination replyTo)

      message.setJMSReplyTo(replyTo);
   
public voidsetJMSTimestamp(long timestamp)

      message.setJMSTimestamp(timestamp);
   
public voidsetJMSType(java.lang.String type)

      message.setJMSType(type);
   
public voidsetLongProperty(java.lang.String name, long value)

      message.setLongProperty(name, value);
   
public voidsetObjectProperty(java.lang.String name, java.lang.Object value)

      message.setObjectProperty(name, value);
   
public voidsetShortProperty(java.lang.String name, short value)

      message.setShortProperty(name, value);
   
public voidsetStringProperty(java.lang.String name, java.lang.String value)

      message.setStringProperty(name, value);
   
public java.lang.StringtoString()

      return message.toString();