Package org.apache.camel.spi

Examples of org.apache.camel.spi.HasId


        this.uri = uri;
    }

    protected String createHref(String uri, Endpoint endpoint) {
        if (endpoint instanceof HasId) {
            HasId hasId = (HasId) endpoint;
            String id = hasId.getId();
            return "/endpoints/" + id;
        } else {
            // must not include :// in endpoint link
            // TODO: might need to use org.apache.camel.util.UnsafeUriCharactersEncoder to safely encode URI for the web
            return "/endpoints/" + UriCharactersEncoder.encode(uri);
View Full Code Here


            }
        }
        if (endpoint == null) {
            for (Endpoint e : getCamelContext().getEndpoints()) {
                if (e instanceof HasId) {
                    HasId hasId = (HasId) e;
                    String value = hasId.getId();
                    if (value != null && value.equals(id)) {
                        endpoint = e;
                        break;
                    }
                }
View Full Code Here

            }
        }
        if (endpoint == null) {
            for (Endpoint e : getCamelContext().getEndpoints()) {
                if (e instanceof HasId) {
                    HasId hasId = (HasId) e;
                    String value = hasId.getId();
                    if (value != null && value.equals(id)) {
                        endpoint = e;
                        break;
                    }
                }
View Full Code Here

        this.uri = uri;
    }

    protected String createHref(String uri, Endpoint endpoint) {
        if (endpoint instanceof HasId) {
            HasId hasId = (HasId) endpoint;
            String id = hasId.getId();
            return "/endpoints/" + id;
        } else {
            // must not include :// in endpoint link
            // TODO: might need to use org.apache.camel.util.UnsafeUriCharactersEncoder to safely encode URI for the web
            return "/endpoints/" + UriCharactersEncoder.encode(uri);
View Full Code Here

            }
        }
        if (endpoint == null) {
            for (Endpoint e : getCamelContext().getEndpoints()) {
                if (e instanceof HasId) {
                    HasId hasId = (HasId) e;
                    String value = hasId.getId();
                    if (value != null && value.equals(id)) {
                        endpoint = e;
                        break;
                    }
                }
View Full Code Here

            }
        }
        if (endpoint == null) {
            for (Endpoint e : getCamelContext().getEndpoints()) {
                if (e instanceof HasId) {
                    HasId hasId = (HasId) e;
                    String value = hasId.getId();
                    if (value != null && value.equals(id)) {
                        endpoint = e;
                        break;
                    }
                }
View Full Code Here

        this.uri = uri;
    }

    protected String createHref(String uri, Endpoint endpoint) {
        if (endpoint instanceof HasId) {
            HasId hasId = (HasId) endpoint;
            String id = hasId.getId();
            return "/endpoints/" + id;
        } else {
            // must not include :// in endpoint link
            // TODO: might need to use org.apache.camel.util.UnsafeUriCharactersEncoder to safely encode URI for the web
            return "/endpoints/" + UriCharactersEncoder.encode(uri);
View Full Code Here

            }
        }
        if (endpoint == null) {
            for (Endpoint e : getCamelContext().getEndpoints()) {
                if (e instanceof HasId) {
                    HasId hasId = (HasId) e;
                    String value = hasId.getId();
                    if (value != null && value.equals(id)) {
                        endpoint = e;
                        break;
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.camel.spi.HasId

Copyright © 2018 www.massapicom. 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.