use of org.apache.cxf.wsdl.http.AddressType in project cxf by apache.
the class LocalTransportFactory method getDestination.
protected LocalDestination getDestination(EndpointInfo ei, EndpointReferenceType reference, Bus bus) throws IOException {
String addr = reference.getAddress().getValue();
if (addr == null) {
AddressType tp = ei.getExtensor(AddressType.class);
if (tp != null) {
addr = tp.getLocation();
}
}
if (addr == null) {
addr = NULL_ADDRESS;
}
LocalDestination d = destinations.get(addr);
if (d == null) {
d = createDestination(ei, reference, bus);
LocalDestination tmpD = destinations.putIfAbsent(addr, d);
if (tmpD != null) {
d = tmpD;
}
}
return d;
}
Aggregations