Package com.volantis.xml.pipeline.sax.config

Examples of com.volantis.xml.pipeline.sax.config.XMLPipelineConfiguration


        XMLPipeline pipeline = dynamicProcess.getPipeline();

        // obain the pipeline configuration
        XMLPipelineContext context = pipeline.getPipelineContext();
        XMLPipelineConfiguration configuration =
                context.getPipelineConfiguration();

        // retrieve an XMLPipelineFactory
        XMLPipelineFactory factory = context.getPipelineFactory();
View Full Code Here


       
        // get hold of the default pipeline factory
        XMLPipelineFactory factory = XMLPipelineFactory.getDefaultInstance();
       
        // factory a pipeline configuration
        XMLPipelineConfiguration pipelineConfiguration =
            factory.createPipelineConfiguration();
       
        // factor a DynamicProcessConfiguration
        DynamicProcessConfiguration dynamicConfig =
                factory.createDynamicProcessConfiguration();
       
        // register the DynamicProcessConfiguration with the pipeline
        // configuration
        pipelineConfiguration.storeConfiguration(
                DynamicProcessConfiguration.class,
                dynamicConfig);
       
        // create a XMLPipelineContext
        EnvironmentInteraction interaction = null;
View Full Code Here

    /**
     * Test that pipeline caching works with multi-threading.
     */
    public void testConcurrency() throws Exception {
        final XMLPipelineConfiguration config =
                super.createPipelineConfiguration();
        final CacheProcessConfiguration cpc = new CacheProcessConfiguration();
        config.storeConfiguration(CacheProcessConfiguration.class, cpc);
        cpc.createCache("myCache", "1000", "0");

        String path = getClass().getName().replace('.', '/');
        URL inputURL = getResourceURL(path + ".input.xml");
        URL expectedURL = getResourceURL(path + ".expected.xml");
View Full Code Here

        cpc = new CacheProcessConfiguration();
    }

    // javadoc inherited
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        final XMLPipelineConfiguration config =
                super.createPipelineConfiguration();
        config.storeConfiguration(CacheProcessConfiguration.class, cpc);
        return config;
    }
View Full Code Here

    // javadoc inherited
    protected void setUp() throws Exception {
        super.setUp();
        factory = new TestPipelineFactory();
        // create an empty pipeline configuration
        XMLPipelineConfiguration pipelineConfig =
                factory.createPipelineConfiguration();
        // ok to use null interaction for this test
        EnvironmentInteraction rootInteraction = null;
               
        context = factory.createPipelineContext(pipelineConfig,
View Full Code Here

        cpc = new CacheProcessConfiguration();
    }

    // javadoc inherited
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        final XMLPipelineConfiguration config =
                super.createPipelineConfiguration();
        config.storeConfiguration(CacheProcessConfiguration.class, cpc);

        return config;
    }
View Full Code Here

*/
public class CachingWebDriverTestCase extends WebDriverTestAbstract {

    // 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() {
            // JavaDoc inherited
            PluggableHTTPManager getPluggableHTTPManager(String protocol) {
                return new CachingPluggableHTTPManager(
                    new HTTPClientPluggableHTTPManager(), urlConfig.getCache());
            }
        };
        config.storeConfiguration(WebDriverConfiguration.class, webdConf);
        return config;
    }
View Full Code Here

        cpc = new CacheProcessConfiguration();
    }

    // javadoc inherited
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        final XMLPipelineConfiguration config =
                super.createPipelineConfiguration();
        config.storeConfiguration(CacheProcessConfiguration.class, cpc);
        return config;
    }
View Full Code Here

        // Set a cache configuration. Without this a
        // CachingPluggableHTTPManager will not be created.
        webdConfig.setHTTPCacheConfiguration(
                new MockHTTPCacheConfiguration(null, 50, 4000));

        final XMLPipelineConfiguration pipelineConfiguration =
            createPipelineConfiguration();

        // Test null protocol string
        PluggableHTTPManager manager =
            webdConfig.getPluggableHTTPManager(null, pipelineConfiguration);
View Full Code Here

                   managerCopy);
    }

    // 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.config.XMLPipelineConfiguration

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.