Package org.apache.camel

Examples of org.apache.camel.Component.createConfiguration()


        if (LOG.isTraceEnabled()) {
            LOG.trace("Lookup for Component handling \"{}:\" configuration returned {}",
                new Object[]{scheme, component != null ? component.getClass().getName() : "<null>"});
        }
        if (component != null) {
            EndpointConfiguration config = component.createConfiguration(scheme);
            if (config instanceof DefaultEndpointConfiguration) {
                ((DefaultEndpointConfiguration) config).setURI(uri);
            }
            return config;
        } else {
View Full Code Here


        } */

        Component component = context.getComponent(scheme);
        LOG.trace("Lookup for Component handling \"{}:\" configuration returned {}",
            scheme, component != null ? component.getClass().getName() : "<null>");
        DefaultEndpointConfiguration cfg = (DefaultEndpointConfiguration)component.createConfiguration(scheme);
        // Should we be ok with URIs not properly encoded? (that method may need a bit of refactoring too)
        cfg.setURI(new URI(UnsafeUriCharactersEncoder.encode(uri)));
        return cfg;
    }
   
View Full Code Here

        if (LOG.isTraceEnabled()) {
            LOG.trace("Lookup for Component handling \"{}:\" configuration returned {}",
                new Object[]{scheme, component != null ? component.getClass().getName() : "<null>"});
        }
        if (component != null) {
            EndpointConfiguration config = component.createConfiguration(scheme);
            if (config instanceof DefaultEndpointConfiguration) {
                ((DefaultEndpointConfiguration) config).setURI(uri);
            }
            return config;
        } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.