javax.jms
Interface Message

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

public interface Message

Version:
$Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $

Field Summary
static int DEFAULT_DELIVERY_MODE
           
static int DEFAULT_PRIORITY
           
static long DEFAULT_TIME_TO_LIVE
           
 
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 id)
           
 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

static final int DEFAULT_DELIVERY_MODE
See Also:
Constant Field Values

DEFAULT_PRIORITY

static final int DEFAULT_PRIORITY
See Also:
Constant Field Values

DEFAULT_TIME_TO_LIVE

static final long DEFAULT_TIME_TO_LIVE
See Also:
Constant Field Values
Method Detail

getJMSMessageID

String getJMSMessageID()
                       throws JMSException
Throws:
JMSException

setJMSMessageID

void setJMSMessageID(String id)
                     throws JMSException
Throws:
JMSException

getJMSTimestamp

long getJMSTimestamp()
                     throws JMSException
Throws:
JMSException

setJMSTimestamp

void setJMSTimestamp(long timestamp)
                     throws JMSException
Throws:
JMSException

getJMSCorrelationIDAsBytes

byte[] getJMSCorrelationIDAsBytes()
                                  throws JMSException
Throws:
JMSException

setJMSCorrelationIDAsBytes

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

setJMSCorrelationID

void setJMSCorrelationID(String correlationID)
                         throws JMSException
Throws:
JMSException

getJMSCorrelationID

String getJMSCorrelationID()
                           throws JMSException
Throws:
JMSException

getJMSReplyTo

Destination getJMSReplyTo()
                          throws JMSException
Throws:
JMSException

setJMSReplyTo

void setJMSReplyTo(Destination replyTo)
                   throws JMSException
Throws:
JMSException

getJMSDestination

Destination getJMSDestination()
                              throws JMSException
Throws:
JMSException

setJMSDestination

void setJMSDestination(Destination destination)
                       throws JMSException
Throws:
JMSException

getJMSDeliveryMode

int getJMSDeliveryMode()
                       throws JMSException
Throws:
JMSException

setJMSDeliveryMode

void setJMSDeliveryMode(int deliveryMode)
                        throws JMSException
Throws:
JMSException

getJMSRedelivered

boolean getJMSRedelivered()
                          throws JMSException
Throws:
JMSException

setJMSRedelivered

void setJMSRedelivered(boolean redelivered)
                       throws JMSException
Throws:
JMSException

getJMSType

String getJMSType()
                  throws JMSException
Throws:
JMSException

setJMSType

void setJMSType(String type)
                throws JMSException
Throws:
JMSException

getJMSExpiration

long getJMSExpiration()
                      throws JMSException
Throws:
JMSException

setJMSExpiration

void setJMSExpiration(long expiration)
                      throws JMSException
Throws:
JMSException

getJMSPriority

int getJMSPriority()
                   throws JMSException
Throws:
JMSException

setJMSPriority

void setJMSPriority(int priority)
                    throws JMSException
Throws:
JMSException

clearProperties

void clearProperties()
                     throws JMSException
Throws:
JMSException

propertyExists

boolean propertyExists(String name)
                       throws JMSException
Throws:
JMSException

getBooleanProperty

boolean getBooleanProperty(String name)
                           throws JMSException
Throws:
JMSException

getByteProperty

byte getByteProperty(String name)
                     throws JMSException
Throws:
JMSException

getShortProperty

short getShortProperty(String name)
                       throws JMSException
Throws:
JMSException

getIntProperty

int getIntProperty(String name)
                   throws JMSException
Throws:
JMSException

getLongProperty

long getLongProperty(String name)
                     throws JMSException
Throws:
JMSException

getFloatProperty

float getFloatProperty(String name)
                       throws JMSException
Throws:
JMSException

getDoubleProperty

double getDoubleProperty(String name)
                         throws JMSException
Throws:
JMSException

getStringProperty

String getStringProperty(String name)
                         throws JMSException
Throws:
JMSException

getObjectProperty

Object getObjectProperty(String name)
                         throws JMSException
Throws:
JMSException

getPropertyNames

Enumeration getPropertyNames()
                             throws JMSException
Throws:
JMSException

setBooleanProperty

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

setByteProperty

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

setShortProperty

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

setIntProperty

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

setLongProperty

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

setFloatProperty

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

setDoubleProperty

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

setStringProperty

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

setObjectProperty

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

acknowledge

void acknowledge()
                 throws JMSException
Throws:
JMSException

clearBody

void clearBody()
               throws JMSException
Throws:
JMSException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.