javax.jms
Interface Message

All Known Subinterfaces:
BytesMessage, MapMessage, ObjectMessage, StreamMessage, TextMessage

public interface Message

Version:
$Revision: 1.1.8.1 $
Author:
Chris Kimpton (chris@kimptoc.net)

Field Summary
static int DEFAULT_DELIVERY_MODE
           
static int DEFAULT_PRIORITY
           
static long DEFAULT_TIME_TO_LIVE
          FIXME - is this correct - default should be unlimited ???
 
Method Summary
 void acknowledge()
           
 void clearBody()
           
 void clearProperties()
           
 boolean getBooleanProperty(String name)
           
 byte getByteProperty(String name)
           
 double getDoubleProperty(String name)
           
 float getFloatProperty(String name)
           
 int getIntProperty(String name)
           
 String getJMSCorrelationID()
           
 byte[] getJMSCorrelationIDAsBytes()
           
 int getJMSDeliveryMode()
           
 Destination getJMSDestination()
           
 long getJMSExpiration()
           
 String getJMSMessageID()
           
 int getJMSPriority()
           
 boolean getJMSRedelivered()
           
 Destination getJMSReplyTo()
           
 long getJMSTimestamp()
           
 String getJMSType()
           
 long getLongProperty(String name)
           
 Object getObjectProperty(String name)
           
 Enumeration getPropertyNames()
           
 short getShortProperty(String name)
           
 String getStringProperty(String name)
           
 boolean propertyExists(String name)
           
 void setBooleanProperty(String name, boolean value)
           
 void setByteProperty(String name, byte value)
           
 void setDoubleProperty(String name, double value)
           
 void setFloatProperty(String name, float value)
           
 void setIntProperty(String name, int value)
           
 void setJMSCorrelationID(String correlationID)
           
 void setJMSCorrelationIDAsBytes(byte[] correlationID)
           
 void setJMSDeliveryMode(int deliveryMode)
           
 void setJMSDestination(Destination destination)
           
 void setJMSExpiration(long expiration)
           
 void setJMSMessageID(String messageID)
           
 void setJMSPriority(int priority)
           
 void setJMSRedelivered(boolean redelivered)
           
 void setJMSReplyTo(Destination replyTo)
           
 void setJMSTimestamp(long timestamp)
           
 void setJMSType(String type)
           
 void setLongProperty(String name, long value)
           
 void setObjectProperty(String name, Object value)
           
 void setShortProperty(String name, short value)
           
 void setStringProperty(String name, String value)
           
 

Field Detail

DEFAULT_DELIVERY_MODE

public static final int DEFAULT_DELIVERY_MODE
See Also:
Constant Field Values

DEFAULT_PRIORITY

public static final int DEFAULT_PRIORITY
See Also:
Constant Field Values

DEFAULT_TIME_TO_LIVE

public static final long DEFAULT_TIME_TO_LIVE
FIXME - is this correct - default should be unlimited ???

See Also:
Constant Field Values
Method Detail

getJMSMessageID

public String getJMSMessageID()
                       throws JMSException
Throws:
JMSException

setJMSMessageID

public void setJMSMessageID(String messageID)
                     throws JMSException
Throws:
JMSException

getJMSTimestamp

public long getJMSTimestamp()
                     throws JMSException
Throws:
JMSException

setJMSTimestamp

public void setJMSTimestamp(long timestamp)
                     throws JMSException
Throws:
JMSException

getJMSCorrelationIDAsBytes

public byte[] getJMSCorrelationIDAsBytes()
                                  throws JMSException
Throws:
JMSException

setJMSCorrelationIDAsBytes

public void setJMSCorrelationIDAsBytes(byte[] correlationID)
                                throws JMSException
Throws:
JMSException

setJMSCorrelationID

public void setJMSCorrelationID(String correlationID)
                         throws JMSException
Throws:
JMSException

getJMSCorrelationID

public String getJMSCorrelationID()
                           throws JMSException
Throws:
JMSException

getJMSReplyTo

public Destination getJMSReplyTo()
                          throws JMSException
Throws:
JMSException

setJMSReplyTo

public void setJMSReplyTo(Destination replyTo)
                   throws JMSException
Throws:
JMSException

getJMSDestination

public Destination getJMSDestination()
                              throws JMSException
Throws:
JMSException

setJMSDestination

public void setJMSDestination(Destination destination)
                       throws JMSException
Throws:
JMSException

getJMSDeliveryMode

public int getJMSDeliveryMode()
                       throws JMSException
Throws:
JMSException

setJMSDeliveryMode

public void setJMSDeliveryMode(int deliveryMode)
                        throws JMSException
Throws:
JMSException

getJMSRedelivered

public boolean getJMSRedelivered()
                          throws JMSException
Throws:
JMSException

setJMSRedelivered

public void setJMSRedelivered(boolean redelivered)
                       throws JMSException
Throws:
JMSException

getJMSType

public String getJMSType()
                  throws JMSException
Throws:
JMSException

setJMSType

public void setJMSType(String type)
                throws JMSException
Throws:
JMSException

getJMSExpiration

public long getJMSExpiration()
                      throws JMSException
Throws:
JMSException

setJMSExpiration

public void setJMSExpiration(long expiration)
                      throws JMSException
Throws:
JMSException

getJMSPriority

public int getJMSPriority()
                   throws JMSException
Throws:
JMSException

setJMSPriority

public void setJMSPriority(int priority)
                    throws JMSException
Throws:
JMSException

clearProperties

public void clearProperties()
                     throws JMSException
Throws:
JMSException

propertyExists

public boolean propertyExists(String name)
                       throws JMSException
Throws:
JMSException

getBooleanProperty

public boolean getBooleanProperty(String name)
                           throws JMSException
Throws:
JMSException

getByteProperty

public byte getByteProperty(String name)
                     throws JMSException
Throws:
JMSException

getShortProperty

public short getShortProperty(String name)
                       throws JMSException
Throws:
JMSException

getIntProperty

public int getIntProperty(String name)
                   throws JMSException
Throws:
JMSException

getLongProperty

public long getLongProperty(String name)
                     throws JMSException
Throws:
JMSException

getFloatProperty

public float getFloatProperty(String name)
                       throws JMSException
Throws:
JMSException

getDoubleProperty

public double getDoubleProperty(String name)
                         throws JMSException
Throws:
JMSException

getStringProperty

public String getStringProperty(String name)
                         throws JMSException
Throws:
JMSException

getObjectProperty

public Object getObjectProperty(String name)
                         throws JMSException
Throws:
JMSException

getPropertyNames

public Enumeration getPropertyNames()
                             throws JMSException
Throws:
JMSException

setBooleanProperty

public void setBooleanProperty(String name,
                               boolean value)
                        throws JMSException
Throws:
JMSException

setByteProperty

public void setByteProperty(String name,
                            byte value)
                     throws JMSException
Throws:
JMSException

setShortProperty

public void setShortProperty(String name,
                             short value)
                      throws JMSException
Throws:
JMSException

setIntProperty

public void setIntProperty(String name,
                           int value)
                    throws JMSException
Throws:
JMSException

setLongProperty

public void setLongProperty(String name,
                            long value)
                     throws JMSException
Throws:
JMSException

setFloatProperty

public void setFloatProperty(String name,
                             float value)
                      throws JMSException
Throws:
JMSException

setDoubleProperty

public void setDoubleProperty(String name,
                              double value)
                       throws JMSException
Throws:
JMSException

setStringProperty

public void setStringProperty(String name,
                              String value)
                       throws JMSException
Throws:
JMSException

setObjectProperty

public void setObjectProperty(String name,
                              Object value)
                       throws JMSException
Throws:
JMSException

acknowledge

public void acknowledge()
                 throws JMSException
Throws:
JMSException

clearBody

public void clearBody()
               throws JMSException
Throws:
JMSException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.