/** * Puts a String property in this message. * * @param key property name * @param value property value */ @Override public Message putStringProperty(String key, String value) { message.putStringProperty(key, value); return this; }
@Override public Message putStringProperty(SimpleString key, String value) { return message.putStringProperty(key, value); }
@Override public ClientMessageImpl putStringProperty(final SimpleString key, final SimpleString value) { return (ClientMessageImpl) super.putStringProperty(key, value); }
@Override public ClientMessageImpl putStringProperty(final SimpleString key, final String value) { return (ClientMessageImpl) super.putStringProperty(key, value); }
@Override public ClientMessageImpl putStringProperty(final String key, final String value) { return (ClientMessageImpl) super.putStringProperty(key, value); }
@Override public Message setLastValueProperty(SimpleString lastValueName) { return putStringProperty(Message.HDR_LAST_VALUE_NAME, lastValueName); }
@Override public Message putStringProperty(SimpleString key, SimpleString value) { return message.putStringProperty(key, value); }
@Override public CoreMessage setReplyTo(SimpleString address) { if (address == null) { checkProperties(); properties.removeProperty(MessageUtil.REPLYTO_HEADER_NAME); } else { putStringProperty(MessageUtil.REPLYTO_HEADER_NAME, address); } return this; }
@Override public CoreMessage setValidatedUserID(String validatedUserID) { putStringProperty(Message.HDR_VALIDATED_USER, SimpleString.toSimpleString(validatedUserID, getPropertyValuesPool())); return this; }
/** * Puts a String property in this message. * * @param key property name * @param value property value */ @Override public Message putStringProperty(String key, String value) { message.putStringProperty(key, value); return this; }
/** * Puts a String property in this message. * * @param key property name * @param value property value */ @Override public Message putStringProperty(String key, String value) { message.putStringProperty(key, value); return this; }
/** * Puts a String property in this message. * * @param key property name * @param value property value */ @Override public Message putStringProperty(String key, String value) { message.putStringProperty(key, value); return this; }
@Override public CoreMessage setValidatedUserID(String validatedUserID) { putStringProperty(Message.HDR_VALIDATED_USER, value(validatedUserID)); return this; }
@Override public CoreMessage setValidatedUserID(String validatedUserID) { putStringProperty(Message.HDR_VALIDATED_USER, value(validatedUserID)); return this; }
@Override public CoreMessage setValidatedUserID(String validatedUserID) { putStringProperty(Message.HDR_VALIDATED_USER, value(validatedUserID)); return this; }
private static void putMsgCluster(final BrokerId[] cluster, final CoreMessage coreMessage) { final StringBuilder builder = new StringBuilder(); for (int i = 0, size = cluster.length; i < size; i++) { builder.append(cluster[i].getValue()); if (i != (size - 1)) { builder.append(','); //is this separator safe? } } coreMessage.putStringProperty(AMQ_MSG_CLUSTER, new SimpleString(builder.toString())); }
private static void putMsgBrokerPath(final BrokerId[] brokers, final CoreMessage coreMessage) { final StringBuilder builder = new StringBuilder(); for (int i = 0, size = brokers.length; i < size; i++) { builder.append(brokers[i].getValue()); if (i != (size - 1)) { builder.append(','); //is this separator safe? } } coreMessage.putStringProperty(AMQ_MSG_BROKER_PATH, new SimpleString(builder.toString())); }
@Override public CoreMessage setReplyTo(SimpleString address) { if (address == null) { checkProperties(); properties.removeProperty(MessageUtil.REPLYTO_HEADER_NAME); } else { putStringProperty(MessageUtil.REPLYTO_HEADER_NAME, address); } return this; }
@Override public CoreMessage setValidatedUserID(String validatedUserID) { putStringProperty(Message.HDR_VALIDATED_USER, SimpleString.toSimpleString(validatedUserID, getPropertyValuesPool())); return this; }
@Override public CoreMessage setReplyTo(SimpleString address) { if (address == null) { getProperties().removeProperty(MessageUtil.REPLYTO_HEADER_NAME); } else { putStringProperty(MessageUtil.REPLYTO_HEADER_NAME, address); } return this; }