private Property getExchangeProperty(String name) { if (_exchange.hasProperties() && _exchange.getProperties().containsKey(name)) { return new CamelExchangeProperty(_exchange, name); } return null; }
private Property getExchangeProperty(String name) { if (_exchange.hasProperties() && _exchange.getProperties().containsKey(name)) { return new CamelExchangeProperty(_exchange, name); } return null; }
@Override public Set<Property> getProperties(Scope scope) { Set<Property> properties = new HashSet<Property>(); switch (scope) { case EXCHANGE: if (_exchange.hasProperties()) { for (String prop : _exchange.getProperties().keySet()) { properties.add(new CamelExchangeProperty(_exchange, prop)); } } break; default: if (_message.hasHeaders()) { Set<Map.Entry<String, Object>> entrySet = _message.getHeaders().entrySet(); Iterator<Map.Entry<String, Object>> iter = entrySet.iterator(); while (iter.hasNext()) { String prop = iter.next().getKey(); properties.add(new CamelMessageProperty(_message, prop)); } } break; } return properties; }
@Override public Set<Property> getProperties(Scope scope) { Set<Property> properties = new HashSet<Property>(); switch (scope) { case EXCHANGE: if (_exchange.hasProperties()) { for (String prop : _exchange.getProperties().keySet()) { properties.add(new CamelExchangeProperty(_exchange, prop)); } } break; default: if (_message.hasHeaders()) { for (String prop : _message.getHeaders().keySet()) { properties.add(new CamelMessageProperty(_message, prop)); } } break; } return properties; }
Exchange exchange = synchronizedExchange.getExchange(); final boolean ignore = exchange.hasProperties() && exchange .getProperties().containsKey(DisruptorEndpoint.DISRUPTOR_IGNORE_EXCHANGE); if (ignore) {