775776777778779780781782
protected void checkWritableProperties() throws MessageNotWriteableException { if (_readableProperties) { throw new MessageNotWriteableException("You need to call clearProperties() to make the message writable"); } }
11561157115811591160116111621163
protected void checkWritable() throws MessageNotWriteableException { if (isReadOnly()) { throw new MessageNotWriteableException("You need to call clearBody() to make the message writable"); } }
349350351352353354355356357
} public void setBooleanProperty(String name, boolean value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setBooleanProperty(name, value); }
357358359360361362363364365
} public void setByteProperty(String name, byte value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setByteProperty(name, value); }
365366367368369370371372373
} public void setShortProperty(String name, short value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setShortProperty(name, value); }
373374375376377378379380381
} public void setIntProperty(String name, int value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setIntProperty(name, value); }
381382383384385386387388389
} public void setLongProperty(String name, long value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setLongProperty(name, value); }
389390391392393394395396397
} public void setFloatProperty(String name, float value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setFloatProperty(name, value); }
397398399400401402403404405
} public void setDoubleProperty(String name, double value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setDoubleProperty(name, value); }
405406407408409410411412413
} public void setStringProperty(String name, String value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setStringProperty(name, value); }