public class ObjectMessageImpl extends MessageImpl implements ObjectMessage
L, logDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
ObjectMessageImpl() |
ObjectMessageImpl(ObjectMessage msg) |
ObjectMessageImpl(ObjectMessageImpl msg) |
ObjectMessageImpl(java.io.Serializable value) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream.
|
void |
clearBody()
Clears the body
|
MessageImpl |
copy() |
java.io.Serializable |
getObject()
Reads the object from the stream.
|
MessageType |
getType()
Returns the type enumeration.
|
void |
readBody(java.io.InputStream is)
Read the body from an input stream.
|
void |
setObject(java.io.Serializable o)
Writes the object to the stream.
|
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, toString, 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 ObjectMessageImpl()
public ObjectMessageImpl(ObjectMessage msg) throws JMSException
JMSExceptionpublic ObjectMessageImpl(ObjectMessageImpl msg)
public ObjectMessageImpl(java.io.Serializable value)
throws JMSException
JMSExceptionpublic MessageType getType()
getType in class MessageImplpublic void setObject(java.io.Serializable o)
throws JMSException
setObject in interface ObjectMessageJMSExceptionpublic java.io.Serializable getObject()
throws JMSException
getObject in interface ObjectMessageJMSExceptionpublic void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSExceptionpublic MessageImpl copy()
copy in class MessageImplpublic 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.IOExceptionJMSException