in components/camel-cxf/camel-cxf-all/src/main/java/org/apache/camel/component/cxf/transport/http/osgi/ConfigAdminHttpConduitConfigurer.java [172:206]
public void configure(String name, String address, HTTPConduit c) {
PidInfo byName = null;
PidInfo byAddress = null;
if (name != null) {
byName = props.get(name);
}
if (address != null) {
byAddress = props.get(address);
if (byAddress == byName) {
byAddress = null;
}
}
HttpConduitConfigApplier applier = new HttpConduitConfigApplier();
for (PidInfo info : sorted) {
if (info.getMatcher() != null
&& info != byName
&& info != byAddress) {
Matcher m = info.getMatcher();
synchronized (m) {
m.reset(address);
if (m.matches()) {
applier.apply(info.getProps(), c, address);
}
}
}
}
if (byAddress != null) {
applier.apply(byAddress.getProps(), c, address);
}
if (byName != null) {
applier.apply(byName.getProps(), c, address);
}
}