/** * Concatenates a SimpleString and a String * @param toAdd the String to concatenate with. * @return the concatenated SimpleString */ public SimpleString concat(final String toAdd) { return concat(new SimpleString(toAdd)); }
public void putLongProperty(final String key, final long value) { properties.putLongProperty(new SimpleString(key), value); bufferValid = false; }
public void putFloatProperty(final String key, final float value) { properties.putFloatProperty(new SimpleString(key), value); bufferValid = false; }
public Message putBytesProperty(final String key, final byte[] value) { properties.putBytesProperty(new SimpleString(key), value); bufferValid = false; return this; }
public void setString(final String name, final String value) throws JMSException { checkName(name); map.putSimpleStringProperty(new SimpleString(name), value == null ? null : new SimpleString(value)); invalid = true; }
public void putIntProperty(final String key, final int value) { properties.putIntProperty(new SimpleString(key), value); bufferValid = false; }
public boolean propertyExists(final String name) throws JMSException { return message.containsProperty(new SimpleString(name)) || name.equals(HornetQMessage.JMSXDELIVERYCOUNT) || HornetQMessage.JMSXGROUPID.equals(name) && message.containsProperty(org.hornetq.api.core.Message.HDR_GROUP_ID); }
/** * Concatenates 2 SimpleString's * @param toAdd the SimpleString to concatenate with. * @return the concatenated SimpleString */ public SimpleString concat(final SimpleString toAdd) { byte[] bytes = new byte[data.length + toAdd.getData().length]; System.arraycopy(data, 0, bytes, 0, data.length); System.arraycopy(toAdd.getData(), 0, bytes, data.length, toAdd.getData().length); return new SimpleString(bytes); }
public void setLongProperty(final String name, final long value) throws JMSException { checkProperty(name, value); message.putLongProperty(new SimpleString(name), value); }
public void setFloatProperty(final String name, final float value) throws JMSException { checkProperty(name, value); message.putFloatProperty(new SimpleString(name), value); }
public void setShort(final String name, final short value) throws JMSException { checkName(name); map.putShortProperty(new SimpleString(name), value); invalid = true; }
public void setLong(final String name, final long value) throws JMSException { checkName(name); map.putLongProperty(new SimpleString(name), value); invalid = true; }
public SimpleString readSimpleString() { int len = readInt(); byte[] data = new byte[len]; readBytes(data); return new SimpleString(data); }
private SimpleString readSimpleStringInternal() { int len = buffer.readInt(); byte[] data = new byte[len]; buffer.readBytes(data); return new SimpleString(data); }
public void putStringProperty(final String key, final String value) { properties.putSimpleStringProperty(new SimpleString(key), SimpleString.toSimpleString(value)); bufferValid = false; }
public short getShortProperty(final String name) throws JMSException { try { return message.getShortProperty(new SimpleString(name)); } catch (PropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
public float getFloatProperty(final String name) throws JMSException { try { return message.getFloatProperty(new SimpleString(name)); } catch (PropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
public double getDoubleProperty(final String name) throws JMSException { try { return message.getDoubleProperty(new SimpleString(name)); } catch (PropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
public void removeAddressSettings(final String addressMatch) throws Exception { checkStarted(); server.getAddressSettingsRepository().removeMatch(addressMatch); storageManager.deleteAddressSetting(new SimpleString(addressMatch)); }
public void removeAddressSettings(final String addressMatch) throws Exception { checkStarted(); server.getAddressSettingsRepository().removeMatch(addressMatch); storageManager.deleteAddressSetting(new SimpleString(addressMatch)); }