org.apache.qpid.client.message
Class JMSObjectMessage

java.lang.Object
  extended by org.apache.qpid.client.message.AbstractJMSMessage
      extended by org.apache.qpid.client.message.JMSObjectMessage
All Implemented Interfaces:
Message, ObjectMessage

public class JMSObjectMessage
extends AbstractJMSMessage
implements ObjectMessage


Field Summary
static String MIME_TYPE
           
 
Fields inherited from class org.apache.qpid.client.message.AbstractJMSMessage
_changedData, _data, _delegate, _readableMessage
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Fields inherited from interface org.apache.qpid.jms.Message
JMS_TYPE
 
Constructor Summary
JMSObjectMessage(AMQMessageDelegate delegate, org.apache.mina.common.ByteBuffer data)
          Creates read only message for delivery to consumers
JMSObjectMessage(AMQMessageDelegateFactory delegateFactory)
          Creates empty, writable message for use by producers
 
Method Summary
 void clearBodyImpl()
          This forces concrete classes to implement clearBody()
 String getMimeType()
           
 Serializable getObject()
           
 void setObject(Serializable serializable)
           
 String toBodyString()
          Get a String representation of the body of the message.
 
Methods inherited from class org.apache.qpid.client.message.AbstractJMSMessage
acknowledge, acknowledgeThis, checkReadable, checkWritable, clearBody, clearProperties, getAMQSession, getBooleanProperty, getByteProperty, getContentLength, getContentType, getData, getDelegate, getDeliveryTag, getDoubleProperty, getEncoding, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getReplyToString, getShortProperty, getStringProperty, prepareForSending, propertyExists, receivedFromServer, removeProperty, reset, setAMQSession, setBooleanProperty, setByteProperty, setContentType, setDoubleProperty, setEncoding, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
 
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, 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
 

Field Detail

MIME_TYPE

public static final String MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

JMSObjectMessage

public JMSObjectMessage(AMQMessageDelegateFactory delegateFactory)
Creates empty, writable message for use by producers

Parameters:
delegateFactory -

JMSObjectMessage

JMSObjectMessage(AMQMessageDelegate delegate,
                 org.apache.mina.common.ByteBuffer data)
           throws org.apache.qpid.AMQException
Creates read only message for delivery to consumers

Throws:
org.apache.qpid.AMQException
Method Detail

clearBodyImpl

public void clearBodyImpl()
                   throws JMSException
Description copied from class: AbstractJMSMessage
This forces concrete classes to implement clearBody()

Specified by:
clearBodyImpl in class AbstractJMSMessage
Throws:
JMSException

toBodyString

public String toBodyString()
                    throws JMSException
Description copied from class: AbstractJMSMessage
Get a String representation of the body of the message. Used in the toString() method which outputs this before message properties.

Specified by:
toBodyString in class AbstractJMSMessage
Throws:
JMSException

getMimeType

public String getMimeType()
Specified by:
getMimeType in class AbstractJMSMessage

setObject

public void setObject(Serializable serializable)
               throws JMSException
Specified by:
setObject in interface ObjectMessage
Throws:
JMSException

getObject

public Serializable getObject()
                       throws JMSException
Specified by:
getObject in interface ObjectMessage
Throws:
JMSException


Licensed to the Apache Software Foundation