站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

SpyMapMessage (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


org.jboss.mq
Class SpyMapMessage

java.lang.Object
  extended byorg.jboss.mq.SpyMessage
      extended byorg.jboss.mq.SpyMapMessage
All Implemented Interfaces:
Cloneable, Comparable, Externalizable, javax.jms.MapMessage, javax.jms.Message, Serializable

public class SpyMapMessage
extends SpyMessage
implements javax.jms.MapMessage, Cloneable, Externalizable

This class implements javax.jms.MapMessage

Version:
$Revision: 1.6.2.4 $
Author:
Norbert Lataille (Norbert.Lataille@m4x.org), Adrian Brock
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jboss.mq.SpyMessage
SpyMessage.Header
 
Field Summary
 
Fields inherited from class org.jboss.mq.SpyMessage
ack, BOOLEAN, BYTE, BYTES_MESS, DOUBLE, ENCAP_MESS, FLOAT, header, INT, LONG, MAP_MESS, NULL, OBJECT, OBJECT_MESS, PROPERTY_REDELIVERY_COUNT, PROPERTY_REDELIVERY_DELAY, PROPERTY_REDELIVERY_LIMIT, PROPERTY_SCHEDULED_DELIVERY, session, SHORT, SPY_MESS, STREAM_MESS, STRING, TEXT_MESS
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
SpyMapMessage()
          Create a new SpyMapMessage
 
Method Summary
 void clearBody()
          Clear the message body
 boolean getBoolean(String name)
           
 byte getByte(String name)
           
 byte[] getBytes(String name)
           
 char getChar(String name)
           
 double getDouble(String name)
           
 float getFloat(String name)
           
 int getInt(String name)
           
 long getLong(String name)
           
 Enumeration getMapNames()
           
 Object getObject(String name)
           
 short getShort(String name)
           
 String getString(String name)
           
 boolean itemExists(String name)
           
 SpyMessage myClone()
          Clone the message
 void readExternal(ObjectInput in)
           
 void setBoolean(String name, boolean value)
           
 void setByte(String name, byte value)
           
 void setBytes(String name, byte[] value)
           
 void setBytes(String name, byte[] value, int offset, int length)
           
 void setChar(String name, char value)
           
 void setDouble(String name, double value)
           
 void setFloat(String name, float value)
           
 void setInt(String name, int value)
           
 void setLong(String name, long value)
           
 void setObject(String name, Object value)
           
 void setShort(String name, short value)
           
 void setString(String name, String value)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.jboss.mq.SpyMessage
acknowledge, clearProperties, compareTo, copyProps, createAcknowledgementRequest, doAcknowledge, doNegAcknowledge, getAcknowledgementRequest, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isOutdated, propertyExists, readMessage, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReadOnlyMode, setShortProperty, setStringProperty, toString, writeMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 

Constructor Detail

SpyMapMessage

public SpyMapMessage()
Create a new SpyMapMessage

Method Detail

setBoolean

public void setBoolean(String name,
                       boolean value)
                throws javax.jms.JMSException
Specified by:
setBoolean in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setByte

public void setByte(String name,
                    byte value)
             throws javax.jms.JMSException
Specified by:
setByte in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setShort

public void setShort(String name,
                     short value)
              throws javax.jms.JMSException
Specified by:
setShort in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setChar

public void setChar(String name,
                    char value)
             throws javax.jms.JMSException
Specified by:
setChar in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setInt

public void setInt(String name,
                   int value)
            throws javax.jms.JMSException
Specified by:
setInt in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setLong

public void setLong(String name,
                    long value)
             throws javax.jms.JMSException
Specified by:
setLong in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setFloat

public void setFloat(String name,
                     float value)
              throws javax.jms.JMSException
Specified by:
setFloat in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setDouble

public void setDouble(String name,
                      double value)
               throws javax.jms.JMSException
Specified by:
setDouble in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setString

public void setString(String name,
                      String value)
               throws javax.jms.JMSException
Specified by:
setString in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setBytes

public void setBytes(String name,
                     byte[] value)
              throws javax.jms.JMSException
Specified by:
setBytes in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setBytes

public void setBytes(String name,
                     byte[] value,
                     int offset,
                     int length)
              throws javax.jms.JMSException
Specified by:
setBytes in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

setObject

public void setObject(String name,
                      Object value)
               throws javax.jms.JMSException
Specified by:
setObject in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getBoolean

public boolean getBoolean(String name)
                   throws javax.jms.JMSException
Specified by:
getBoolean in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getByte

public byte getByte(String name)
             throws javax.jms.JMSException
Specified by:
getByte in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getShort

public short getShort(String name)
               throws javax.jms.JMSException
Specified by:
getShort in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getChar

public char getChar(String name)
             throws javax.jms.JMSException
Specified by:
getChar in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getInt

public int getInt(String name)
           throws javax.jms.JMSException
Specified by:
getInt in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getLong

public long getLong(String name)
             throws javax.jms.JMSException
Specified by:
getLong in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getFloat

public float getFloat(String name)
               throws javax.jms.JMSException
Specified by:
getFloat in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getDouble

public double getDouble(String name)
                 throws javax.jms.JMSException
Specified by:
getDouble in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getString

public String getString(String name)
                 throws javax.jms.JMSException
Specified by:
getString in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getBytes

public byte[] getBytes(String name)
                throws javax.jms.JMSException
Specified by:
getBytes in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getObject

public Object getObject(String name)
                 throws javax.jms.JMSException
Specified by:
getObject in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

getMapNames

public Enumeration getMapNames()
                        throws javax.jms.JMSException
Specified by:
getMapNames in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

itemExists

public boolean itemExists(String name)
                   throws javax.jms.JMSException
Specified by:
itemExists in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException

clearBody

public void clearBody()
               throws javax.jms.JMSException
Description copied from class: SpyMessage
Clear the message body

Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class SpyMessage
Throws:
javax.jms.JMSException - for any error

myClone

public SpyMessage myClone()
                   throws javax.jms.JMSException
Description copied from class: SpyMessage
Clone the message

Overrides:
myClone in class SpyMessage
Returns:
the cloned message
Throws:
javax.jms.JMSException - for any error

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class SpyMessage
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class SpyMessage
Throws:
IOException
ClassNotFoundException


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