use of org.apache.cxf.transport.http.HTTPConduitConfigurer in project cxf by apache.
the class AsyncHttpTransportFactory method getConduit.
@Override
public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target, Bus bus) throws IOException {
// need to updated the endpointInfo
endpointInfo.setAddress(getAddress(endpointInfo));
AsyncHTTPConduitFactory fact = bus.getExtension(AsyncHTTPConduitFactory.class);
if (fact == null) {
fact = factory;
}
HTTPConduit conduit = fact.createConduit(bus, endpointInfo, target);
// Spring configure the conduit.
String address = conduit.getAddress();
if (address != null && address.indexOf('?') != -1) {
address = address.substring(0, address.indexOf('?'));
}
HTTPConduitConfigurer c1 = bus.getExtension(HTTPConduitConfigurer.class);
if (c1 != null) {
c1.configure(conduit.getBeanName(), address, conduit);
}
configure(bus, conduit, conduit.getBeanName(), address);
conduit.finalizeConfig();
return conduit;
}
Aggregations