Package org.exolab.jms.net.util

Examples of org.exolab.jms.net.util.Properties


        ssl.setKeyStoreType("JKS");
        ssl.setTrustStore("trustStore");
        ssl.setTrustStorePassword("trustStorePassword");
        ssl.setTrustStoreType("PCKS12");

        Properties properties = new Properties(prefix);
        HTTPRequestInfo info1 = populate(uri, proxyHost, proxyPort, proxyUser,
                                         proxyPassword, ssl);
        info1.export(properties);
        HTTPRequestInfo info2 = new HTTPRequestInfo(new URI(uri), properties);
        assertEquals(info1, info2);
View Full Code Here


        }
        _factory = factory;
        _handler = handler;
        _resolver = resolver;

        Properties config = new Properties(properties, POOL_PREFIX);
        _reapInterval = getPropertyMillis(config, REAP_INTERVAL, 60);
        _reapDeadIterations = config.getInt(DEAD_ITERATIONS, 5);
        _idlePeriod = getPropertyMillis(config, IDLE_PERIOD, 5);
    }
View Full Code Here

        final String prefix = "org.exolab.jms.net.tcps.";
        final String uri = "tcps://exolab.org:4040/";
        final String alternativeHost = "localhost";
        final boolean bindAll = false;

        Properties properties = new Properties(prefix);
        SocketRequestInfo info1 = populate(uri, alternativeHost, bindAll);
        info1.export(properties);

        SocketRequestInfo info2 = new SocketRequestInfo(
                new URI(properties.get(ORB.PROVIDER_URI)),
                properties);
        assertEquals(info1, info2);

        assertEquals(uri, info2.getURI().toString());
        assertEquals(alternativeHost, info2.getAlternativeHost());
View Full Code Here

        ssl.setKeyStoreType("JKS");
        ssl.setTrustStore("trustStore");
        ssl.setTrustStorePassword("trustStorePassword");
        ssl.setTrustStoreType("PCKS12");

        Properties properties = new Properties(prefix);
        TCPSRequestInfo info1 = populate(uri, alternativeHost, bindAll,
                                         ssl, clientAuthReqd);
        info1.export(properties);

        TCPSRequestInfo info2 = new TCPSRequestInfo(
                new URI(properties.get(ORB.PROVIDER_URI)),
                properties);

        assertEquals(info1, info2);

        assertEquals(ssl, info2.getSSLProperties());
View Full Code Here

     * connection to the remote ORB.
     *
     * @return a map of String properties
     */
    public Map getConnectProperties() {
        Properties properties = getProperties();
        populateConnectProperties(properties);
        return properties.getProperties();
    }
View Full Code Here

     * connections from remote ORBs.
     *
     * @return a map of String properties
     */
    public Map getAcceptProperties() {
        Properties properties = getProperties();
        populateAcceptProperties(properties);
        return properties.getProperties();
    }
View Full Code Here

            prefix += "vm";
        } else {
            prefix += _scheme.toString();
        }
        prefix += ".";
        return new Properties(prefix);
    }
View Full Code Here

        if (authenticator == null) {
            throw new IllegalArgumentException(
                    "Argument 'authenticator' is null");
        }

        Properties helper = new Properties(properties, null);
        try {
            _maxThreads = helper.getInt(MAX_THREADS_NAME, MAX_THREADS);
        } catch (ResourceException exception) {
            throw new RemoteException("Failed to construct thread pool",
                    exception);
        }

        _factory = (ThreadPoolFactory) helper.getProperties().get(
                THREAD_POOL_FACTORY);
        if (_factory == null) {
            _factory = new DefaultThreadPoolFactory(null);
        }
View Full Code Here

     * All searches will be performed with properties prefixed by
     * "org.exolab.jms.net.<scheme>." .
     */
    protected Properties getProperties(Map properties) {
        String prefix = PROPERTY_PREFIX + _connectScheme + ".";
        return new Properties(properties, prefix);
    }
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.util.Properties

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.