net.sf.dropboxmq.messages
Class ObjectMessageImpl
java.lang.Object
net.sf.dropboxmq.messages.MessageImpl
net.sf.dropboxmq.messages.ObjectMessageImpl
- All Implemented Interfaces:
- Message, ObjectMessage
public class ObjectMessageImpl
- extends MessageImpl
- implements ObjectMessage
Created: 28 Jan 2006
- Version:
- $Revision: 231 $, $Date: 2011-08-12 21:50:47 -0600 (Fri, 12 Aug 2011) $
- Author:
- Dwayne Schultz
Methods inherited from class net.sf.dropboxmq.messages.MessageImpl |
acknowledge, checkWrite, clearProperties, convertForeignMessage, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getReadMessageFile, getSequence, getSession, getShortProperty, getStringProperty, isBodyReadOnly, isExpired, isReceived, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReceived, setSequence, setSession, setShortProperty, setStringProperty, toObjectString |
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 |
ObjectMessageImpl
public ObjectMessageImpl(SessionImpl session)
ObjectMessageImpl
ObjectMessageImpl(ObjectMessage foreignMessage,
SessionImpl session)
throws JMSException
- Throws:
JMSException
read
public void read(File newMessageFile,
FileSystem fileSystem)
throws JMSException,
IOException,
FileSystem.FileSystemException
- Overrides:
read
in class MessageImpl
- Throws:
JMSException
IOException
FileSystem.FileSystemException
write
public void write(File newMessageFile,
FileSystem fileSystem)
throws IOException,
JMSException,
FileSystem.FileSystemException
- Overrides:
write
in class MessageImpl
- Throws:
IOException
JMSException
FileSystem.FileSystemException
setObject
public void setObject(Serializable object)
throws JMSException
- Description copied from interface:
javax.jms.ObjectMessage
- Sets the serializable object containing this message's data.
It is important to note that an
ObjectMessage
contains a snapshot of the object at the time setObject()
is called; subsequent modifications of the object will have no
effect on the ObjectMessage
body.
- Specified by:
setObject
in interface ObjectMessage
- Parameters:
object
- the message's data
- Throws:
JMSException
- if the JMS provider fails to set the object
due to some internal error.
MessageFormatException
- if object serialization fails.
MessageNotWriteableException
- if the message is in read-only
mode.
getObject
public Serializable getObject()
throws JMSException
- Description copied from interface:
javax.jms.ObjectMessage
- Gets the serializable object containing this message's data. The
default value is null.
- Specified by:
getObject
in interface ObjectMessage
- Returns:
- the serializable object containing this message's data
- Throws:
JMSException
- if the JMS provider fails to get the object
due to some internal error.
MessageFormatException
- if object deserialization fails.
clearBody
public void clearBody()
throws JMSException
- Description copied from interface:
javax.jms.Message
- Clears out the message body. Clearing a message's body does not clear
its header values or property entries.
If this message body was read-only, calling this method leaves
the message body in the same state as an empty body in a newly
created message.
- Specified by:
clearBody
in interface Message
- Overrides:
clearBody
in class MessageImpl
- Throws:
JMSException
- if the JMS provider fails to clear the message
body due to some internal error.
toString
public String toString()
- Overrides:
toString
in class MessageImpl