public Destination getDestination()

in cxf/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRTransportFactory.java [114:140]


    public Destination getDestination(EndpointInfo ei) throws IOException {
        NMRDestination destination = new NMRDestination(ei, nmr);
        Configurer configurer = bus.getExtension(Configurer.class);
        if (null != configurer) {
            configurer.configureBean(destination);
        }
        String address = ei.getAddress();
        String endpointName = "";
        if (address != null && address.startsWith("nmr:")) {
            if (address.indexOf("?") > 0) {
                endpointName = address.substring(4, address.indexOf("?"));
            } else {
                endpointName = address.substring(4);
            }
        } else {
            endpointName = ei.getName().toString();
        }

        
        try {
            putDestination(endpointName + ei.getService().getName().toString()
                + ei.getInterface().getName().toString(), destination);
        } catch (ServiceMixException e) {
            throw new IOException(e.getMessage());
        }
        return destination;
    }