/** * @see ClientRequestor#ClientRequestor(ClientSession, SimpleString) */ public ClientRequestor(final ClientSession session, final String requestAddress) throws Exception { this(session, SimpleString.toSimpleString(requestAddress)); }
@Override public SimpleString getAddress() { return SimpleString.toSimpleString(""); } }
@Override public void createQueue(final String address, final String queueName, final String filterString, final boolean durable) throws ActiveMQException { createQueue(SimpleString.toSimpleString(address), SimpleString.toSimpleString(queueName), SimpleString.toSimpleString(filterString), durable); }
@Override public void createTemporaryQueue(final String address, final String queueName, final String filter) throws ActiveMQException { createTemporaryQueue(SimpleString.toSimpleString(address), SimpleString.toSimpleString(queueName), SimpleString.toSimpleString(filter)); }
@Override public void createQueue(final String address, final RoutingType routingType, final String queueName, final String filterString, final boolean durable, final boolean autoCreated) throws ActiveMQException { createQueue(SimpleString.toSimpleString(address), SimpleString.toSimpleString(queueName), SimpleString.toSimpleString(filterString), durable, autoCreated); }
@Override public void createQueue(final String address, final String queueName, final boolean durable) throws ActiveMQException { createQueue(SimpleString.toSimpleString(address), SimpleString.toSimpleString(queueName), durable); }
@Override public void createQueue(final String address, final String queueName, final String filterString, final boolean durable, final boolean autoCreated) throws ActiveMQException { createQueue(SimpleString.toSimpleString(address), SimpleString.toSimpleString(queueName), SimpleString.toSimpleString(filterString), durable, autoCreated); }
@Override public ClientConsumer createConsumer(final String queueName, final String filterString, final int windowSize, final int maxRate, final boolean browseOnly) throws ActiveMQException { return createConsumer(SimpleString.toSimpleString(queueName), SimpleString.toSimpleString(filterString), windowSize, maxRate, browseOnly); }
public static SimpleString toParameterisedAddress(SimpleString address, Map<String, String> parameters) throws URISyntaxException { if (parameters != null && !parameters.isEmpty()) { return SimpleString.toSimpleString(toParameterisedAddress(address.toString(), parameters)); } else { return address; } }
@Override public CoreMessage setValidatedUserID(String validatedUserID) { putStringProperty(Message.HDR_VALIDATED_USER, SimpleString.toSimpleString(validatedUserID, getPropertyValuesPool())); return this; }
@Override public Double getDoubleProperty(final String key) throws ActiveMQPropertyConversionException { checkProperties(); return getDoubleProperty(SimpleString.toSimpleString(key)); }
@Override public CoreMessage putStringProperty(final String key, final String value) { messageChanged(); checkProperties(); properties.putSimpleStringProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), SimpleString.toSimpleString(value, getPropertyValuesPool())); return this; }
@Override public CoreMessage putObjectProperty(final String key, final Object value) throws ActiveMQPropertyConversionException { messageChanged(); putObjectProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public Boolean getBooleanProperty(final String key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getBooleanProperty(SimpleString.toSimpleString(key, getPropertyKeysPool())); }
@Override public Short getShortProperty(final String key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getShortProperty(SimpleString.toSimpleString(key, getPropertyKeysPool())); }
@Override public SimpleString getSimpleStringProperty(final String key) throws ActiveMQPropertyConversionException { checkProperties(); return properties.getSimpleStringProperty(SimpleString.toSimpleString(key, getPropertyKeysPool())); }
@Override public CoreMessage putFloatProperty(final String key, final float value) { messageChanged(); checkProperties(); properties.putFloatProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putDoubleProperty(final String key, final double value) { messageChanged(); checkProperties(); properties.putDoubleProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putByteProperty(final String key, final byte value) { messageChanged(); checkProperties(); properties.putByteProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putIntProperty(final String key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }