public class ObjectMessageImpl extends MessageImpl implements ObjectMessage
L, log
DEFAULT_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, 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 ObjectMessageImpl()
public ObjectMessageImpl(ObjectMessage msg) throws JMSException
JMSException
public ObjectMessageImpl(ObjectMessageImpl msg)
public ObjectMessageImpl(java.io.Serializable value) throws JMSException
JMSException
public MessageType getType()
getType
in class MessageImpl
public void setObject(java.io.Serializable o) throws JMSException
setObject
in interface ObjectMessage
JMSException
public java.io.Serializable getObject() throws JMSException
getObject
in interface ObjectMessage
JMSException
public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class MessageImpl
JMSException
public MessageImpl copy()
copy
in class MessageImpl
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