Package com.volantis.xml.pipeline.sax.drivers

Examples of com.volantis.xml.pipeline.sax.drivers.ConnectionConfiguration


    /**
     * Tries to create the cache
     */
    private void createCache() {
        final ConnectionConfiguration connectionConfig =
            (ConnectionConfiguration) pipelineConfig.retrieveConfiguration(
                ConnectionConfiguration.class);
        final boolean enabled;
        final int maxEntries;
        if (connectionConfig != null) {
            enabled = connectionConfig.isCachingEnabled();
            maxEntries = connectionConfig.getMaxCacheEntries();
        } else {
            final WebDriverConfiguration webDriverConfig =
                (WebDriverConfiguration) pipelineConfig.retrieveConfiguration(
                    WebDriverConfiguration.class);
            if (webDriverConfig != null) {
View Full Code Here


                    timeoutInMillis = configuration.getTimeoutInMillis();
                } else {
                    // There is no configured timeout, so let's take the one,
                    // if any, specified in the generic connection timeout
                    // (remembering to convert from seconds to milliseconds).
                    ConnectionConfiguration connectionConfiguration =
                            (ConnectionConfiguration) pipelineConfiguration.
                            retrieveConfiguration(
                                    ConnectionConfiguration.class);

                    if ((connectionConfiguration != null) &&
                            (connectionConfiguration.getTimeout() > 0)) {
                        timeoutInMillis =
                                connectionConfiguration.getTimeout() * 1000;
                    }
                }

                timeout = Period.treatNonPositiveAsIndefinitely(
                        timeoutInMillis);
View Full Code Here

    // JavaDoc inherited
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        final XMLPipelineConfiguration config =
            super.createPipelineConfiguration();
        final ConnectionConfiguration connectionConfiguration =
            new ConnectionConfigurationImpl();
        connectionConfiguration.setCachingEnabled(true);
        connectionConfiguration.setMaxCacheEntries(1000);
        config.storeConfiguration(
            ConnectionConfiguration.class, connectionConfiguration);
        final URLContentCacheConfiguration urlConfig =
            new URLContentCacheConfiguration(config);
        WebDriverConfigurationImpl webdConf = new WebDriverConfigurationImpl() {
View Full Code Here

    // JavaDoc inherited
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        final XMLPipelineConfiguration config = new IntegrationTestHelper().
            getPipelineFactory().createPipelineConfiguration();
        final ConnectionConfiguration connectionConfiguration =
            new ConnectionConfigurationImpl();
        connectionConfiguration.setCachingEnabled(true);
        connectionConfiguration.setMaxCacheEntries(1000);
        config.storeConfiguration(
            ConnectionConfiguration.class, connectionConfiguration);
        return config;
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.drivers.ConnectionConfiguration

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.