Package org.switchyard.component.camel.common

Examples of org.switchyard.component.camel.common.QueryString


        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = NETTY + ":" + getProtocol() + "://" + getHost() + ":" + getPort();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, HOST, PORT);

        return URI.create(baseUri + queryStr.toString());
    }
View Full Code Here


        String baseUri = getEndpointProtocol() + "://" + username + getHost();
        baseUri += getPort() != null ? ":" + getPort() : "";
        baseUri += getDirectory() != null ? "/" + getDirectory() : "";

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, HOST, PORT, USERNAME, PASSWORD, DIRECTORY);

        return URI.create(baseUri + queryStr.toString());
    }
View Full Code Here

    @Override
    public URI getComponentURI() {
        String uriStr = SEDA + "://" + getConfig(NAME);
        // create query string from config values
        QueryString queryString = new QueryString();
        traverseConfiguration(getModelConfiguration().getChildren(), queryString, NAME);

        return URI.create(uriStr.toString() + queryString);
    }
View Full Code Here

        return value == null ? null : Long.valueOf(value);
    }

    @Override
    public String getTimerURI(String name) {
        QueryString queryStr = new QueryString();
        queryStr.add("period", getPeriod());
        queryStr.add("delay", getInitialDelay());
        return UnsafeUriCharactersEncoder.encode("timer://" + name + queryStr);
    }
View Full Code Here

                  .append(getServer());
        }
        uriBuf.append(":")
              .append(getRfcName());

        QueryString queryString = new QueryString();
        traverseConfiguration(children, queryString, SERVER, DESTINATION, RFC_NAME);
        uriBuf.append(queryString.toString());

        return URI.create(uriBuf.toString());
    }
View Full Code Here

        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = SQL + "://" + getQuery();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, QUERY);

        return URI.create(UnsafeUriCharactersEncoder.encode(baseUri + queryStr.toString()));
    }
View Full Code Here

    @Override
    public URI getComponentURI() {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        QueryString queryString = new QueryString();
        traverseConfiguration(children, queryString, HOST, PORT);

        String protocol = isReferenceBinding() ?  getProducer().getProtocol() : getConsumer().getProtocol();
        String port = getPort() != null ? ":" + getPort() : "";
View Full Code Here

        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = JPA + "://" + getEntityClassName();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, ENTITY_CLASS_NAME);

        return URI.create(baseUri + UnsafeUriCharactersEncoder.encode(queryStr.toString()));
    }
View Full Code Here

    @Override
    public URI getComponentURI() {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        QueryString queryString = new QueryString();
        traverseConfiguration(children, queryString, DIRECTORY);

        URI newURI = URI.create(FILE + "://" + getDirectory() + queryString);
        return newURI;
    }
View Full Code Here

        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = RSS + "://" + getFeedURI();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, FEED_URI);

        return URI.create(baseUri + queryStr.toString());
    }
View Full Code Here

TOP

Related Classes of org.switchyard.component.camel.common.QueryString

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.