com.caucho.jms.message
Class ObjectMessageImpl

java.lang.Object
  extended by com.caucho.jms.message.MessageImpl
      extended by com.caucho.jms.message.ObjectMessageImpl
All Implemented Interfaces:
java.io.Serializable, Message, ObjectMessage

public class ObjectMessageImpl
extends MessageImpl
implements ObjectMessage

An object message.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.jms.message.MessageImpl
L, log
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
ObjectMessageImpl()
           
ObjectMessageImpl(ObjectMessage msg)
           
ObjectMessageImpl(ObjectMessageImpl msg)
           
ObjectMessageImpl(java.io.Serializable value)
           
 
Method Summary
 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.
 
Methods inherited from class com.caucho.jms.message.MessageImpl
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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

ObjectMessageImpl

public ObjectMessageImpl()

ObjectMessageImpl

public ObjectMessageImpl(ObjectMessage msg)
                  throws JMSException
Throws:
JMSException

ObjectMessageImpl

public ObjectMessageImpl(ObjectMessageImpl msg)

ObjectMessageImpl

public ObjectMessageImpl(java.io.Serializable value)
                  throws JMSException
Throws:
JMSException
Method Detail

getType

public MessageType getType()
Returns the type enumeration.

Overrides:
getType in class MessageImpl

setObject

public void setObject(java.io.Serializable o)
               throws JMSException
Writes the object to the stream.

Specified by:
setObject in interface ObjectMessage
Throws:
JMSException

getObject

public java.io.Serializable getObject()
                               throws JMSException
Reads the object from the stream.

Specified by:
getObject in interface ObjectMessage
Throws:
JMSException

clearBody

public void clearBody()
               throws JMSException
Clears the body

Specified by:
clearBody in interface Message
Overrides:
clearBody in class MessageImpl
Throws:
JMSException

copy

public MessageImpl copy()
Overrides:
copy in class MessageImpl

bodyToInputStream

public java.io.InputStream bodyToInputStream()
                                      throws java.io.IOException
Serialize the body to an input stream.

Overrides:
bodyToInputStream in class MessageImpl
Throws:
java.io.IOException

readBody

public void readBody(java.io.InputStream is)
              throws java.io.IOException,
                     JMSException
Read the body from an input stream.

Overrides:
readBody in class MessageImpl
Throws:
java.io.IOException
JMSException