Examples of toProperties()


Examples of org.apache.tuscany.sca.policy.security.http.ssl.HTTPSPolicy.toProperties()

        for (Object policy : findPolicies()) {
            if (policy instanceof HTTPSPolicy) {
                HTTPSPolicy httpsPolicy = (HTTPSPolicy)policy;
               
                securityContext.setSSLEnabled(true);
                securityContext.setSSLProperties(httpsPolicy.toProperties());
               
                // TODO - what is the right way to set trust/key store on client side?
               
                logger.info("HTTPSPolicyProvider: Setting JVM trust store to " + httpsPolicy.getTrustStore());
                System.setProperty("javax.net.ssl.trustStore", httpsPolicy.getTrustStore());
View Full Code Here

Examples of org.apache.tuscany.sca.policy.security.http.ssl.HTTPSPolicy.toProperties()

        for (Object policy : findPolicies()) {
            if (policy instanceof HTTPSPolicy) {
                HTTPSPolicy httpsPolicy = (HTTPSPolicy)policy;
               
                securityContext.setSSLEnabled(true);
                securityContext.setSSLProperties(httpsPolicy.toProperties());
               
                // TODO - what is the right way to set trust/key store on client side?
               
                logger.info("HTTPSPolicyProvider: Setting JVM trust store to " + httpsPolicy.getTrustStore());
                System.setProperty("javax.net.ssl.trustStore", httpsPolicy.getTrustStore());
View Full Code Here

Examples of org.archfirst.bfexch.domain.marketdata.MarketPrice.toProperties()

        try {
            connection = connectionFactory.createConnection();
            Session session = connection.createSession(
                    false, Session.AUTO_ACKNOWLEDGE);
            MessageProducer producer = session.createProducer(destination);
            producer.send(session.createTextMessage(marketPrice.toProperties()));
        }
        catch (JMSException e) {
            throw new RuntimeException("Failed to publish market price", e);
        }
        finally {
View Full Code Here

Examples of org.spatialite.SQLiteConfig.toProperties()

        try {
            Class.forName("org.spatialite.JDBC");
            SQLiteConfig config = new SQLiteConfig();
            config.enableSpatiaLite(true);
            connection = DriverManager.getConnection("jdbc:spatialite::memory:",
                    config.toProperties());
            Statement statement = connection.createStatement();
            statement.execute("SELECT InitSpatialMetaData();");
        } catch (SQLException e) {
            thrown = e;
            thrown.printStackTrace();
View Full Code Here

Examples of org.springframework.batch.core.JobParameters.toProperties()

    if (previousJobExecution != null) {
      JobParameters previousJobParameters = previousJobExecution.getJobParameters();

      if (previousJobParameters != null && !previousJobParameters.isEmpty()) {
        jobRestartProperties.putAll(previousJobParameters.toProperties());
      }
    }

    if (params != null) {
      Enumeration<?> propertyNames = params.propertyNames();
View Full Code Here

Examples of org.sqlite.SQLiteConfig.toProperties()

         config.enableLoadExtension(true);


          con = DriverManager.getConnection(
                 strUrlDatabase,
                 config.toProperties());

         stt = con.createStatement();
         stt.executeUpdate("PRAGMA foreign_keys = ON;");
         int intRes = stt.executeUpdate(strCommand);
        
View Full Code Here

Examples of org.switchyard.config.model.property.PropertiesModel.toProperties()

        if (overrides != null) {
            overrideProperties(properties, overrides);
        }
        PropertiesModel propertiesModel  = model.getProperties();
        if (propertiesModel != null) {
            overrideProperties(properties, propertiesModel.toProperties());
        }
        return properties;
    }

    private static void overrideProperties(Properties target, Properties overrides) {
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.