Class AbstractMessage

    • Field Detail

      • bodyIsReadOnly

        protected boolean bodyIsReadOnly
    • Constructor Detail

      • AbstractMessage

        public AbstractMessage()
        Constructor
    • Method Detail

      • getRawMessage

        public final RawDataBuffer getRawMessage()
        Get the raw message form if available
        Returns:
        the raw message form if available
      • copy

        public abstract AbstractMessage copy()
        Create an independant copy of this message
      • copyCommonFields

        protected final void copyCommonFields​(AbstractMessage clone)
        Create an independant copy of this message
      • setSession

        public final void setSession​(AbstractSession session)
                              throws javax.jms.JMSException
        Set the message session
        Throws:
        javax.jms.JMSException
      • getSession

        protected final AbstractSession getSession()
                                            throws javax.jms.JMSException
        Get the parent session
        Throws:
        javax.jms.JMSException
      • acknowledge

        public final void acknowledge()
                               throws javax.jms.JMSException
        Specified by:
        acknowledge in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • clearProperties

        public final void clearProperties()
        Specified by:
        clearProperties in interface javax.jms.Message
      • getBooleanProperty

        public final boolean getBooleanProperty​(String name)
                                         throws javax.jms.JMSException
        Specified by:
        getBooleanProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getByteProperty

        public final byte getByteProperty​(String name)
                                   throws javax.jms.JMSException
        Specified by:
        getByteProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getDoubleProperty

        public final double getDoubleProperty​(String name)
                                       throws javax.jms.JMSException
        Specified by:
        getDoubleProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getFloatProperty

        public final float getFloatProperty​(String name)
                                     throws javax.jms.JMSException
        Specified by:
        getFloatProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getIntProperty

        public final int getIntProperty​(String name)
                                 throws javax.jms.JMSException
        Specified by:
        getIntProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getJMSCorrelationID

        public final String getJMSCorrelationID()
        Specified by:
        getJMSCorrelationID in interface javax.jms.Message
      • getJMSCorrelationIDAsBytes

        public final byte[] getJMSCorrelationIDAsBytes()
        Specified by:
        getJMSCorrelationIDAsBytes in interface javax.jms.Message
      • getJMSDeliveryMode

        public final int getJMSDeliveryMode()
        Specified by:
        getJMSDeliveryMode in interface javax.jms.Message
      • getJMSDestination

        public final javax.jms.Destination getJMSDestination()
        Specified by:
        getJMSDestination in interface javax.jms.Message
      • getJMSExpiration

        public final long getJMSExpiration()
        Specified by:
        getJMSExpiration in interface javax.jms.Message
      • getJMSMessageID

        public final String getJMSMessageID()
        Specified by:
        getJMSMessageID in interface javax.jms.Message
      • getJMSPriority

        public final int getJMSPriority()
        Specified by:
        getJMSPriority in interface javax.jms.Message
      • getJMSRedelivered

        public final boolean getJMSRedelivered()
        Specified by:
        getJMSRedelivered in interface javax.jms.Message
      • getJMSReplyTo

        public final javax.jms.Destination getJMSReplyTo()
        Specified by:
        getJMSReplyTo in interface javax.jms.Message
      • getJMSTimestamp

        public final long getJMSTimestamp()
        Specified by:
        getJMSTimestamp in interface javax.jms.Message
      • getJMSType

        public final String getJMSType()
        Specified by:
        getJMSType in interface javax.jms.Message
      • getLongProperty

        public final long getLongProperty​(String name)
                                   throws javax.jms.JMSException
        Specified by:
        getLongProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getObjectProperty

        public final Object getObjectProperty​(String name)
        Specified by:
        getObjectProperty in interface javax.jms.Message
      • getShortProperty

        public final short getShortProperty​(String name)
                                     throws javax.jms.JMSException
        Specified by:
        getShortProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getStringProperty

        public final String getStringProperty​(String name)
                                       throws javax.jms.JMSException
        Specified by:
        getStringProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • propertyExists

        public final boolean propertyExists​(String name)
        Specified by:
        propertyExists in interface javax.jms.Message
      • setBooleanProperty

        public final void setBooleanProperty​(String name,
                                             boolean value)
                                      throws javax.jms.JMSException
        Specified by:
        setBooleanProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setByteProperty

        public final void setByteProperty​(String name,
                                          byte value)
                                   throws javax.jms.JMSException
        Specified by:
        setByteProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setDoubleProperty

        public final void setDoubleProperty​(String name,
                                            double value)
                                     throws javax.jms.JMSException
        Specified by:
        setDoubleProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setFloatProperty

        public final void setFloatProperty​(String name,
                                           float value)
                                    throws javax.jms.JMSException
        Specified by:
        setFloatProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setIntProperty

        public final void setIntProperty​(String name,
                                         int value)
                                  throws javax.jms.JMSException
        Specified by:
        setIntProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSCorrelationID

        public final void setJMSCorrelationID​(String correlationID)
        Specified by:
        setJMSCorrelationID in interface javax.jms.Message
      • setJMSCorrelationIDAsBytes

        public final void setJMSCorrelationIDAsBytes​(byte[] correlationID)
        Specified by:
        setJMSCorrelationIDAsBytes in interface javax.jms.Message
      • setJMSDeliveryMode

        public final void setJMSDeliveryMode​(int deliveryMode)
                                      throws javax.jms.JMSException
        Specified by:
        setJMSDeliveryMode in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSDestination

        public final void setJMSDestination​(javax.jms.Destination destination)
                                     throws javax.jms.JMSException
        Specified by:
        setJMSDestination in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSExpiration

        public final void setJMSExpiration​(long expiration)
        Specified by:
        setJMSExpiration in interface javax.jms.Message
      • setJMSMessageID

        public final void setJMSMessageID​(String id)
                                   throws javax.jms.JMSException
        Specified by:
        setJMSMessageID in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSPriority

        public final void setJMSPriority​(int priority)
                                  throws javax.jms.JMSException
        Specified by:
        setJMSPriority in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSRedelivered

        public final void setJMSRedelivered​(boolean redelivered)
        Specified by:
        setJMSRedelivered in interface javax.jms.Message
      • setJMSReplyTo

        public final void setJMSReplyTo​(javax.jms.Destination replyTo)
        Specified by:
        setJMSReplyTo in interface javax.jms.Message
      • setJMSTimestamp

        public final void setJMSTimestamp​(long timestamp)
        Specified by:
        setJMSTimestamp in interface javax.jms.Message
      • setJMSType

        public final void setJMSType​(String type)
        Specified by:
        setJMSType in interface javax.jms.Message
      • setLongProperty

        public final void setLongProperty​(String name,
                                          long value)
                                   throws javax.jms.JMSException
        Specified by:
        setLongProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setObjectProperty

        public final void setObjectProperty​(String name,
                                            Object value)
                                     throws javax.jms.JMSException
        Specified by:
        setObjectProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setShortProperty

        public final void setShortProperty​(String name,
                                           short value)
                                    throws javax.jms.JMSException
        Specified by:
        setShortProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setStringProperty

        public final void setStringProperty​(String name,
                                            String value)
                                     throws javax.jms.JMSException
        Specified by:
        setStringProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getPropertyNames

        public final Enumeration<String> getPropertyNames()
        Specified by:
        getPropertyNames in interface javax.jms.Message
      • isInternalCopy

        public final boolean isInternalCopy()
        Test if this message is an internal copy
      • setInternalCopy

        public final void setInternalCopy​(boolean copy)
        Set if this message is an internal copy
      • getType

        protected abstract byte getType()
        Get the type value for this message
      • serializeTo

        protected final void serializeTo​(RawDataBuffer out)
        Write the message content to the given output stream
      • initializeFromRaw

        protected final void initializeFromRaw​(RawDataBuffer rawMessage)
        Initialize the message from the given raw data
      • ensureDeserializationLevel

        public final void ensureDeserializationLevel​(int targetLevel)
      • assertDeserializationLevel

        protected final void assertDeserializationLevel​(int targetLevel)
      • markAsReadOnly

        public final void markAsReadOnly()
      • serializeBodyTo

        protected abstract void serializeBodyTo​(RawDataBuffer out)
      • unserializeBodyFrom

        protected abstract void unserializeBodyFrom​(RawDataBuffer in)