Examples of addProperty()


Examples of org.apache.sling.ide.transport.ResourceProxy.addProperty()

    }

    private ResourceProxy newResourceWithProperties(Map<String, Object> properties) {
        ResourceProxy resource = new ResourceProxy("/");
        for (Map.Entry<String, Object> entry : properties.entrySet()) {
            resource.addProperty(entry.getKey(), entry.getValue());
        }
        return resource;
    }

    @Test

Examples of org.apache.sling.jcr.contentloader.internal.NodeDescription.addProperty()

        NodeDescription child = new NodeDescription();
        child.setName("c1");
        PropertyDescription prop = new PropertyDescription();
        prop.setName("c1p1");
        prop.setValue("c1v1");
        child.addProperty(prop);
        nodes.add(child);

        String json = this.toJsonObject(nodes).toString();

        NodeDescription node = this.parse(json);

Examples of org.apache.stratum.configuration.Configuration.addProperty()

                    {
                        // But we don't translate remote jar URLs.
                        path = Turbine.getRealPath(path);
                    }
                    // Put the translated paths back to the configuration.
                    configuration.addProperty(key,path);
                }
            }
        }
        try
        {

Examples of org.apache.struts.config.PlugInConfig.addProperty()

   
      // Set tiles plugin
      PlugInConfig pluginConfig = new PlugInConfig();
      pluginConfig.setClassName("org.apache.struts.tiles.TilesPlugin");
       
      pluginConfig.addProperty(
        "moduleAware",
        (moduleAware == true ? "true" : "false"));
           
      pluginConfig.addProperty(
        "definitions-config",

Examples of org.apache.synapse.commons.datasource.DataSourceInformation.addProperty()

        if (defaultCatalog != null && !"".equals(defaultCatalog)) {
            datasourceInformation.setDefaultCatalog(defaultCatalog);
        }

        datasourceInformation.addProperty(
                prefix + DataSourceConstants.PROP_IC_FACTORY,
                MiscellaneousUtil.getProperty(
                        properties, prefix + DataSourceConstants.PROP_IC_FACTORY,
                        null));
        //Provider URL

Examples of org.apache.synapse.config.SynapseConfiguration.addProperty()

        if (props != null) {
            Iterator iter = props.keySet().iterator();
            while (iter.hasNext()) {
                String key = (String) iter.next();
                testConfig.addProperty(key, (Property)props.get(key));
            }
        }
        synCtx.setConfiguration(testConfig);

        SOAPEnvelope envelope = OMAbstractFactory.getSOAP11Factory().getDefaultEnvelope();

Examples of org.apache.synapse.core.axis2.ProxyService.addProperty()

            if (o instanceof OMElement) {
                OMElement prop = (OMElement) o;
                OMAttribute pname = prop.getAttribute(new QName(Constants.NULL_NAMESPACE, "name"));
                OMAttribute value = prop.getAttribute(new QName(Constants.NULL_NAMESPACE, "value"));
                if (pname != null && value != null) {
                    proxy.addProperty(pname.getAttributeValue(), value.getAttributeValue());
                } else {
                    handleException("Invalid property specified for proxy service : " + name);
                }
            } else {
                handleException("Invalid property specified for proxy service : " + name);

Examples of org.apache.synapse.endpoints.AddressEndpoint.addProperty()

            addressEndpoint.setDefinition(definition);

            MediatorProperty property = new MediatorProperty();
            property.setName(WeightedRRLCAlgorithm.LB_WEIGHTED_RRLC_WEIGHT);
            property.setValue(weights[i]);
            addressEndpoint.addProperty(property);

            endpoints.add(addressEndpoint);
        }

        return endpoints;

Examples of org.apache.synapse.endpoints.LoadbalanceEndpoint.addProperty()

        WeightedRRLCAlgorithm algorithm = new WeightedRRLCAlgorithm();

        MediatorProperty property = new MediatorProperty();
        property.setName(WeightedRRLCAlgorithm.LB_WEIGHTED_RRLC_ROUNDS_PER_RECAL);
        property.setValue("2");
        loadbalanceEndpoint.addProperty(property);       

        algorithm.setEndpoints(endpoints);
        algorithm.setLoadBalanceEndpoint(loadbalanceEndpoint);

        loadbalanceEndpoint.setChildren(endpoints);

Examples of org.apache.synapse.mediators.builtin.LogMediator.addProperty()

        log.setLogLevel(LogMediator.FULL);

        MediatorProperty mp = new MediatorProperty();
        mp.setName("MESSAGE");
        mp.setValue("Executing default \"fault\" sequence");
        log.addProperty(mp);

        mp = new MediatorProperty();
        mp.setName("ERROR_CODE");
        try {
            mp.setExpression(new SynapseXPath("get-property('ERROR_CODE')"));
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.