Package com.volantis.xml.pipeline.sax.url

Examples of com.volantis.xml.pipeline.sax.url.URLContentCacheConfiguration


                    config = connectionConfig;
                }
                return config;
            }
        };
        URLContentCacheConfiguration urlConfig =
            new URLContentCacheConfiguration(config);
        return new CachingPluggableHTTPManager(delegate, urlConfig.getCache());
    }
View Full Code Here


            new ConnectionConfigurationImpl();
        connectionConfiguration.setCachingEnabled(true);
        connectionConfiguration.setMaxCacheEntries(1000);
        config.storeConfiguration(
            ConnectionConfiguration.class, connectionConfiguration);
        final URLContentCacheConfiguration urlConfig =
            new URLContentCacheConfiguration(config);
        WebDriverConfigurationImpl webdConf = new WebDriverConfigurationImpl() {
            // JavaDoc inherited
            PluggableHTTPManager getPluggableHTTPManager(String protocol) {
                return new CachingPluggableHTTPManager(
                    new HTTPClientPluggableHTTPManager(), urlConfig.getCache());
            }
        };
        config.storeConfiguration(WebDriverConfiguration.class, webdConf);
        return config;
    }
View Full Code Here

     */
    private Cache getCache(XMLPipelineConfiguration pipelineConfiguration) {
        final Cache cache;
        if (pipelineConfiguration != null) {
            // get the cache configuration
            URLContentCacheConfiguration urlContentCacheConfiguration =
                (URLContentCacheConfiguration) pipelineConfiguration.
                    retrieveConfiguration(URLContentCacheConfiguration.class);
            if (urlContentCacheConfiguration == null) {
                urlContentCacheConfiguration =
                    new URLContentCacheConfiguration(pipelineConfiguration);
                pipelineConfiguration.storeConfiguration(
                    URLContentCacheConfiguration.class,
                    urlContentCacheConfiguration);
            }
            cache = urlContentCacheConfiguration.getCache();
        } else {
            cache = null;
        }
        return cache;
    }
View Full Code Here

                ConnectionConfiguration.class,
                connectionConfiguration);

        // Store the URLContentCache configuration if we have a connection
        // configuration.
        final URLContentCacheConfiguration urlContentCacheConfig =
            new URLContentCacheConfiguration(pipelineConfig);
        pipelineConfig.storeConfiguration(URLContentCacheConfiguration.class,
            urlContentCacheConfig);


        // Store the URL to URLC configuration in the pipeline
View Full Code Here

            retrievePipelineCacheProcessConfiguration();
        cache.flushAllCaches();


        // flush URLContentCache
        URLContentCacheConfiguration contentCacheConfig = retrieveURLContentCacheConfiguration();
        Cache contentCache = contentCacheConfig.getCache();

        if (contentCache != null) {
            contentCache.getRootGroup().flush(null);
        }
    }
View Full Code Here

     * @return the Cache.
     */
    private URLContentCacheConfiguration retrieveURLContentCacheConfiguration() {
        final XMLPipelineConfiguration config =
                pipelineInitialization.getPipelineConfiguration();
        final URLContentCacheConfiguration cpc = (URLContentCacheConfiguration)
                config.retrieveConfiguration(URLContentCacheConfiguration.class);
        return cpc;
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.url.URLContentCacheConfiguration

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.