public class MapMessageImpl extends MessageImpl implements MapMessage
L, log
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
Constructor and Description |
---|
MapMessageImpl() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream.
|
void |
clearBody()
Clears the message and puts it into write mode.
|
MessageImpl |
copy() |
protected void |
copy(MapMessageImpl newMsg) |
boolean |
getBoolean(java.lang.String name)
Get a boolean from the stream.
|
byte |
getByte(java.lang.String name)
Get a byte from the stream.
|
byte[] |
getBytes(java.lang.String name)
Get a byte array object from the stream.
|
int |
getBytes(java.lang.String name,
byte[] value)
Get a byte array object from the stream.
|
char |
getChar(java.lang.String name)
Get a character object from the stream.
|
double |
getDouble(java.lang.String name)
Get a double from the stream.
|
float |
getFloat(java.lang.String name)
Get a float from the stream.
|
int |
getInt(java.lang.String name)
Get an integer from the stream.
|
long |
getLong(java.lang.String name)
Get a long from the stream.
|
java.util.Enumeration |
getMapNames()
Returns an enumeration of the map names.
|
java.lang.Object |
getObject(java.lang.String name)
Gets the next object.
|
short |
getShort(java.lang.String name)
Get a short from the stream.
|
java.lang.String |
getString(java.lang.String name)
Get a string from the stream.
|
MessageType |
getType()
Returns the type enumeration.
|
boolean |
itemExists(java.lang.String name)
Returns true if the object exists.
|
void |
readBody(java.io.InputStream is)
Read the body from an input stream.
|
void |
setBoolean(java.lang.String name,
boolean b)
Sets a boolean to the stream.
|
void |
setByte(java.lang.String name,
byte b)
Sets a byte to the stream.
|
void |
setBytes(java.lang.String name,
byte[] buf)
Sets a byte array to the stream.
|
void |
setBytes(java.lang.String name,
byte[] buf,
int offset,
int length)
Sets a byte array to the stream.
|
void |
setChar(java.lang.String name,
char ch)
Sets a character to the stream.
|
void |
setDouble(java.lang.String name,
double d)
Sets a double to the stream.
|
void |
setFloat(java.lang.String name,
float f)
Sets a float to the stream.
|
void |
setInt(java.lang.String name,
int i)
Sets an integer to the stream.
|
void |
setLong(java.lang.String name,
long l)
Sets a long to the stream.
|
void |
setObject(java.lang.String name,
java.lang.Object obj)
Sets the next object.
|
void |
setShort(java.lang.String name,
short s)
Sets a short to the stream.
|
void |
setString(java.lang.String name,
java.lang.String s)
Sets a string to the stream.
|
java.lang.String |
toString() |
acknowledge, checkBodyReadable, checkBodyWriteable, checkHeaderWriteable, checkPropertyWriteable, clearProperties, copy, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getProperties, getPropertyNames, getSequence, getShortProperty, getStringProperty, isReserved, propertiesToInputStream, propertyExists, readProperties, setBodyReadOnly, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReceive, setSequence, setSession, setShortProperty, setStringProperty, writeBody, writeProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public MessageType getType()
getType
in class MessageImpl
public boolean itemExists(java.lang.String name) throws JMSException
itemExists
in interface MapMessage
JMSException
public java.util.Enumeration getMapNames() throws JMSException
getMapNames
in interface MapMessage
JMSException
public boolean getBoolean(java.lang.String name) throws JMSException
getBoolean
in interface MapMessage
JMSException
public byte getByte(java.lang.String name) throws JMSException
getByte
in interface MapMessage
JMSException
public short getShort(java.lang.String name) throws JMSException
getShort
in interface MapMessage
JMSException
public int getInt(java.lang.String name) throws JMSException
getInt
in interface MapMessage
JMSException
public long getLong(java.lang.String name) throws JMSException
getLong
in interface MapMessage
JMSException
public float getFloat(java.lang.String name) throws JMSException
getFloat
in interface MapMessage
JMSException
public double getDouble(java.lang.String name) throws JMSException
getDouble
in interface MapMessage
JMSException
public char getChar(java.lang.String name) throws JMSException
getChar
in interface MapMessage
JMSException
public java.lang.String getString(java.lang.String name) throws JMSException
getString
in interface MapMessage
JMSException
public byte[] getBytes(java.lang.String name) throws JMSException
getBytes
in interface MapMessage
JMSException
public int getBytes(java.lang.String name, byte[] value) throws JMSException
JMSException
public java.lang.Object getObject(java.lang.String name) throws JMSException
getObject
in interface MapMessage
JMSException
public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class MessageImpl
JMSException
public void setBoolean(java.lang.String name, boolean b) throws JMSException
setBoolean
in interface MapMessage
JMSException
public void setByte(java.lang.String name, byte b) throws JMSException
setByte
in interface MapMessage
JMSException
public void setShort(java.lang.String name, short s) throws JMSException
setShort
in interface MapMessage
JMSException
public void setInt(java.lang.String name, int i) throws JMSException
setInt
in interface MapMessage
JMSException
public void setLong(java.lang.String name, long l) throws JMSException
setLong
in interface MapMessage
JMSException
public void setFloat(java.lang.String name, float f) throws JMSException
setFloat
in interface MapMessage
JMSException
public void setDouble(java.lang.String name, double d) throws JMSException
setDouble
in interface MapMessage
JMSException
public void setString(java.lang.String name, java.lang.String s) throws JMSException
setString
in interface MapMessage
JMSException
public void setChar(java.lang.String name, char ch) throws JMSException
setChar
in interface MapMessage
JMSException
public void setBytes(java.lang.String name, byte[] buf) throws JMSException
setBytes
in interface MapMessage
JMSException
public void setBytes(java.lang.String name, byte[] buf, int offset, int length) throws JMSException
setBytes
in interface MapMessage
JMSException
public void setObject(java.lang.String name, java.lang.Object obj) throws JMSException
setObject
in interface MapMessage
JMSException
public MessageImpl copy()
copy
in class MessageImpl
protected void copy(MapMessageImpl newMsg)
public java.io.InputStream bodyToInputStream() throws java.io.IOException
bodyToInputStream
in class MessageImpl
java.io.IOException
public void readBody(java.io.InputStream is) throws java.io.IOException, JMSException
readBody
in class MessageImpl
java.io.IOException
JMSException
public java.lang.String toString()
toString
in class MessageImpl