413414415416417418419420421
} public void setObjectProperty(String name, Object value) throws JMSException { if (propertiesReadOnly) throw new MessageNotWriteableException("Properties are read-only"); headerChange(); message.setObjectProperty(name, value); }
903904905906907908909910
protected void checkWritableProperties() throws MessageNotWriteableException { if (_readableProperties) { throw new MessageNotWriteableException("You need to call clearProperties() to make the message writable"); } }
53545556575859606162
public void setObject(Serializable object) throws JMSException { if (bodyReadOnly) { throw new MessageNotWriteableException("setObject"); } bodyChange(); ((ObjectMessage)message).setObject(object); }
276277278279280281282283284285286
public void writeBoolean(final boolean value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeBoolean(value); }
292293294295296297298299300301302
public void writeByte(final byte value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeByte(value); }
308309310311312313314315316317318
public void writeShort(final short value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeShort(value); }
324325326327328329330331332333334
public void writeChar(final char value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeChar(value); }
340341342343344345346347348349350
public void writeInt(final int value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeInt(value); }
356357358359360361362363364365366
public void writeLong(final long value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeLong(value); }
372373374375376377378379380381382
public void writeFloat(final float value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeFloat(value); }