Package org.switchyard.config

Examples of org.switchyard.config.Configuration


    protected abstract String getProtocol();

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

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

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, HOST, PORT);
View Full Code Here


    }

    @Override
    public CamelRemoteFileConsumerBindingModel getConsumer() {
        if (_consume == null) {
            Configuration config = getModelConfiguration().getFirstChild(CONSUME);
            _consume = new V1CamelRemoteFileConsumerBindingModel(config,
                getModelDescriptor());
        }
        return _consume;
    }
View Full Code Here

        return _consume;
    }

    @Override
    public V1CamelRemoteFileBindingModel setConsumer(CamelRemoteFileConsumerBindingModel consumer) {
        Configuration config = getModelConfiguration().getFirstChild(CONSUME);
        if (config != null) {
            // set an existing config value
            getModelConfiguration().removeChildren(CONSUME);
            getModelConfiguration().addChild(((V1CamelRemoteFileConsumerBindingModel) consumer)
                .getModelConfiguration());
View Full Code Here

    }

    @Override
    public CamelRemoteFileProducerBindingModel getProducer() {
        if (_produce == null) {
            Configuration config = getModelConfiguration().getFirstChild(PRODUCE);
            _produce = new V1CamelRemoteFileProducerBindingModel(config,
                getModelDescriptor());
        }
        return _produce;
    }
View Full Code Here

        return _produce;
    }

    @Override
    public V1CamelRemoteFileBindingModel setProducer(CamelRemoteFileProducerBindingModel producer) {
        Configuration config = getModelConfiguration().getFirstChild(PRODUCE);
        if (config != null) {
            // set an existing config value
            getModelConfiguration().removeChildren(PRODUCE);
            getModelConfiguration().addChild(((V1CamelRemoteFileProducerBindingModel) producer)
                .getModelConfiguration());
View Full Code Here

        return this;
    }

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

        String username = "";
        if (getUsername() != null && getPassword() != null) {
            username = getUsername() + ":" + getPassword() + "@";
        } else if (getUsername() != null && getPassword() == null) {
View Full Code Here

    public SocketAddr getSocketAddr() {
        if (_socketAddr == null) {
            SOAPNameValueModel socketAddrModel = getNameValue(SOAPName.socketAddr);
            String socketAddrValue = socketAddrModel != null ? socketAddrModel.getValue() : null;
            if (socketAddrValue == null) {
                Configuration socketAddrEnvConfig = getEnvironment().getFirstChild(SOAPName.socketAddr.name());
                socketAddrValue = socketAddrEnvConfig != null ? socketAddrEnvConfig.getValue() : null;
            }
            if (socketAddrValue != null) {
                _socketAddr = new SocketAddr(socketAddrValue);
            } else {
                _socketAddr = new SocketAddr();
View Full Code Here

        if (_contextPath == null) {
            _contextPath = getNameValue(SOAPName.contextPath);
        }
        String contextPath = _contextPath != null ? _contextPath.getValue() : null;
        if (contextPath == null) {
            Configuration contextPathConfig = getEnvironment().getFirstChild(SOAPName.contextPath.name());
            contextPath = contextPathConfig != null ? contextPathConfig.getValue() : null;
        }
        return contextPath;
    }
View Full Code Here

        return UnsafeUriCharactersEncoder.encode("timer://" + name + queryStr);
    }

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

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

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, QUERY);
View Full Code Here

        return this;
    }

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

        StringBuilder uriBuf = new StringBuilder(SAP);
        if (isReferenceBinding()) {
            uriBuf.append(":destination:")
                  .append(getDestination());
View Full Code Here

TOP

Related Classes of org.switchyard.config.Configuration

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.