public Object getObjectProperty(final SimpleString key) { return properties.getProperty(key); }
public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<String, Object>(); map.put("messageID", messageID); if (userID != null) { map.put("userID", "ID:" + userID.toString()); } map.put("address", address.toString()); map.put("type", type); map.put("durable", durable); map.put("expiration", expiration); map.put("timestamp", timestamp); map.put("priority", priority); for (SimpleString propName : properties.getPropertyNames()) { map.put(propName.toString(), properties.getProperty(propName)); } return map; }
public Map<String, Object> toMap() { Map<String, Object> map = new HashMap<String, Object>(); map.put("messageID", messageID); if (userID != null) { map.put("userID", "ID:" + userID.toString()); } map.put("address", address.toString()); map.put("type", type); map.put("durable", durable); map.put("expiration", expiration); map.put("timestamp", timestamp); map.put("priority", priority); for (SimpleString propName : properties.getPropertyNames()) { map.put(propName.toString(), properties.getProperty(propName)); } return map; }
public Object getObjectProperty(final SimpleString key) { return properties.getProperty(key); }
for (SimpleString name : notification.getProperties().getPropertyNames()) notificationMessage.putObjectProperty(name, props.getProperty(name));
public Object getObjectProperty(final String key) { return properties.getProperty(new SimpleString(key)); }
for (SimpleString name : notification.getProperties().getPropertyNames()) notificationMessage.putObjectProperty(name, props.getProperty(name));
public Object getObjectProperty(final String key) { return properties.getProperty(new SimpleString(key)); }
public Object getObject(final String name) throws JMSException { Object val = map.getProperty(new SimpleString(name)); if (val instanceof SimpleString) { val = ((SimpleString)val).toString(); } return val; }