|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.jms.message.BasicMessage | +--org.exolab.jmscts.jms.message.BasicObjectMessage
This class provides a basic implementation of the javax.jms.ObjectMessage interface.
ObjectMessage
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
BasicObjectMessage()
Construct a new BasicObjectMessage |
Method Summary | |
void |
clearBody()
Clear out the message body. |
java.io.Serializable |
getObject()
Get the serializable object containing this message's data. |
void |
setObject(java.io.Serializable object)
Set the serializable object containing this message's data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
public BasicObjectMessage()
BasicObjectMessage
Method Detail |
public final void setObject(java.io.Serializable object) throws javax.jms.MessageFormatException, javax.jms.MessageNotWriteableException
ObjectMessage
contains a snapshot of the object at the time setObject()
is called - subsequent modifications of the object will have no
affect on the ObjectMessage
body.setObject
in interface javax.jms.ObjectMessage
object
- the message's datajavax.jms.MessageFormatException
- if object serialization failsjavax.jms.MessageNotWriteableException
- if the message is read-onlypublic final java.io.Serializable getObject() throws javax.jms.MessageFormatException
getObject
in interface javax.jms.ObjectMessage
javax.jms.MessageFormatException
- if object deserialization failspublic final void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
clearBody
in class BasicMessage
javax.jms.JMSException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |