public class MapMessageImpl extends MessageImpl implements MapMessage
L, logDEFAULT_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, writePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, 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, setStringPropertypublic MessageType getType()
getType in class MessageImplpublic boolean itemExists(java.lang.String name)
throws JMSException
itemExists in interface MapMessageJMSExceptionpublic java.util.Enumeration getMapNames()
throws JMSException
getMapNames in interface MapMessageJMSExceptionpublic boolean getBoolean(java.lang.String name)
throws JMSException
getBoolean in interface MapMessageJMSExceptionpublic byte getByte(java.lang.String name)
throws JMSException
getByte in interface MapMessageJMSExceptionpublic short getShort(java.lang.String name)
throws JMSException
getShort in interface MapMessageJMSExceptionpublic int getInt(java.lang.String name)
throws JMSException
getInt in interface MapMessageJMSExceptionpublic long getLong(java.lang.String name)
throws JMSException
getLong in interface MapMessageJMSExceptionpublic float getFloat(java.lang.String name)
throws JMSException
getFloat in interface MapMessageJMSExceptionpublic double getDouble(java.lang.String name)
throws JMSException
getDouble in interface MapMessageJMSExceptionpublic char getChar(java.lang.String name)
throws JMSException
getChar in interface MapMessageJMSExceptionpublic java.lang.String getString(java.lang.String name)
throws JMSException
getString in interface MapMessageJMSExceptionpublic byte[] getBytes(java.lang.String name)
throws JMSException
getBytes in interface MapMessageJMSExceptionpublic int getBytes(java.lang.String name,
byte[] value)
throws JMSException
JMSExceptionpublic java.lang.Object getObject(java.lang.String name)
throws JMSException
getObject in interface MapMessageJMSExceptionpublic void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSExceptionpublic void setBoolean(java.lang.String name,
boolean b)
throws JMSException
setBoolean in interface MapMessageJMSExceptionpublic void setByte(java.lang.String name,
byte b)
throws JMSException
setByte in interface MapMessageJMSExceptionpublic void setShort(java.lang.String name,
short s)
throws JMSException
setShort in interface MapMessageJMSExceptionpublic void setInt(java.lang.String name,
int i)
throws JMSException
setInt in interface MapMessageJMSExceptionpublic void setLong(java.lang.String name,
long l)
throws JMSException
setLong in interface MapMessageJMSExceptionpublic void setFloat(java.lang.String name,
float f)
throws JMSException
setFloat in interface MapMessageJMSExceptionpublic void setDouble(java.lang.String name,
double d)
throws JMSException
setDouble in interface MapMessageJMSExceptionpublic void setString(java.lang.String name,
java.lang.String s)
throws JMSException
setString in interface MapMessageJMSExceptionpublic void setChar(java.lang.String name,
char ch)
throws JMSException
setChar in interface MapMessageJMSExceptionpublic void setBytes(java.lang.String name,
byte[] buf)
throws JMSException
setBytes in interface MapMessageJMSExceptionpublic void setBytes(java.lang.String name,
byte[] buf,
int offset,
int length)
throws JMSException
setBytes in interface MapMessageJMSExceptionpublic void setObject(java.lang.String name,
java.lang.Object obj)
throws JMSException
setObject in interface MapMessageJMSExceptionpublic MessageImpl copy()
copy in class MessageImplprotected void copy(MapMessageImpl newMsg)
public java.io.InputStream bodyToInputStream()
throws java.io.IOException
bodyToInputStream in class MessageImpljava.io.IOExceptionpublic void readBody(java.io.InputStream is)
throws java.io.IOException,
JMSException
readBody in class MessageImpljava.io.IOExceptionJMSExceptionpublic java.lang.String toString()
toString in class MessageImpl