org.jboss.jms
Class ObjectMessageImpl

java.lang.Object
  extended byorg.jboss.jms.MessageImpl (src) 
      extended byorg.jboss.jms.ObjectMessageImpl
All Implemented Interfaces:
java.lang.Cloneable, JBossMessage (src) , Message (src) , ObjectMessage (src) , java.io.Serializable

public class ObjectMessageImpl
extends MessageImpl (src)
implements ObjectMessage (src)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.jms.MessageImpl (src)
body, deliveryId, type
 
Fields inherited from interface javax.jms.Message (src)
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
ObjectMessageImpl(java.io.Serializable object)
           
 
Method Summary
 java.io.Serializable getObject()
          Gets the serializable object containing this message's data.
 void setObject(java.io.Serializable object)
          Sets the serializable object containing this message's data.
 
Methods inherited from class org.jboss.jms.MessageImpl (src)
acknowledge, clearBody, clearProperties, clone, create, generateMessageID, generateTimestamp, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getOrigianClientID, getPropertyNames, getSessionDelegate, getShortProperty, getStringProperty, hasExpired, isLocal, isReadOnly, makeReadOnly, propertyExists, setBooleanProperty, setByteProperty, setDeliveryId, setDoubleProperty, setFloatProperty, setIntProperty, setIsLocal, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setOriginClientID, setReadOnly, setSession, setShortProperty, setStringProperty, throwExceptionIfReadOnly
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Message (src)
acknowledge, clearBody, 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

ObjectMessageImpl

public ObjectMessageImpl(java.io.Serializable object)
Method Detail

getObject

public java.io.Serializable getObject()
                               throws JMSException (src) 
Description copied from interface: ObjectMessage (src)
Gets the serializable object containing this message's data. The default value is null.

Specified by:
getObject in interface ObjectMessage (src)
Returns:
the serializable object containing this message's data
Throws:
JMSException (src) - if the JMS provider fails to get the object due to some internal error.

setObject

public void setObject(java.io.Serializable object)
               throws JMSException (src) 
Description copied from interface: ObjectMessage (src)
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 (src)
Parameters:
object - the message's data
Throws:
JMSException (src) - if the JMS provider fails to set the object due to some internal error.