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

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


     */
    public void testGetSubstitutionPath() throws Exception {
        XMLPipelineFactory pipelineFactory =
                new IntegrationTestHelper().getPipelineFactory();

        XMLPipelineConfiguration pipelineConfiguration =
                createPipelineConfiguration();
        AbsoluteToRelativeURLConfiguration config =
                (AbsoluteToRelativeURLConfiguration) pipelineConfiguration.
                retrieveConfiguration(AbsoluteToRelativeURLConfiguration.class);

        // Create a XMLPipelineContext
        XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
View Full Code Here


     * <code>EnvironmentInteraction</code>.
     * @return an XMLPipelineContext instance
     */   
    public XMLPipelineContext createPipelineContext() {
         // create an empty configuration
        XMLPipelineConfiguration pipelineConfiguration =
                createPipelineConfiguration();


        // OK to us a null EnvironmentInteraction for this test
        EnvironmentInteraction interaction = null;       
View Full Code Here

     * Initialize a process so that subsequent (post setPipeline methods) can
     * be tested with an expected setup.
     * @param testable
     */
    protected void initializeProcess(XMLProcessImpl testable) {
        XMLPipelineConfiguration pipelineConfig =
                factory.createPipelineConfiguration();
       
        // allow sublcasses to register configurations
        registerConfiguration(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

    // javadoc inherited
    protected synchronized
            XMLPipelineConfiguration createPipelineConfiguration() {

        XMLPipelineConfiguration configuration = privateConfiguration;
        if (configuration == null) {
            configuration = super.createPipelineConfiguration();
        }
        return configuration;
    }
View Full Code Here

    }

    private XMLPipelineConfiguration createURLRewriterConfiguration() {

        // Get hold of default configuration
        XMLPipelineConfiguration configuration =
                super.createPipelineConfiguration();

        DynamicProcessConfiguration dynamicConfiguration =
                (DynamicProcessConfiguration)
                configuration.retrieveConfiguration(DynamicProcessConfiguration.class);

        NamespaceRuleSet ruleSet = dynamicConfiguration.getNamespaceRules(
                Namespace.PIPELINE.getURI(), true);

        ruleSet.addRule("urlRewriter",
View Full Code Here

     * @throws Exception if an error occurs
     */
    public XMLPipelineConfiguration
            getPipelineConfiguration() throws Exception {

        XMLPipelineConfiguration pipelineConfig =
                getPipelineFactory().createPipelineConfiguration();

        setUpPipelineConfiguration(pipelineConfig);

        return pipelineConfig;
View Full Code Here

     * {@link IntegrationTestHelper#getPipelineConfiguration} returns
     *
     * @return An XMLPipelineConfiguration instance
     */
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        XMLPipelineConfiguration configuration = null;
        try {
            configuration =
                    new IntegrationTestHelper().getPipelineConfiguration();

            DynamicProcessConfiguration dynamic = (DynamicProcessConfiguration)
                    configuration.retrieveConfiguration(
                            DynamicProcessConfiguration.class);
            configureDynamicProcess(dynamic);


        } catch (Exception e) {
View Full Code Here

            }

            // Create a pipeline configuration which knows about the web
            // driver configuration that we've specified, and the default
            // MCS dynamic pipeline configuration.
            XMLPipelineConfiguration configuration =
                    createPipelineConfiguration(webdConfig);

            final XMLPipelineContext pipelineContext =
                    createPipelineContext(configuration,
                            httpRequest, httpResponse);
View Full Code Here

     * @return XMLPipelineConfiguration
     */
    private XMLPipelineConfiguration createPipelineConfiguration(
            WebDriverConfiguration webdConfig) {

        final XMLPipelineConfiguration XMLPipelineConfig =
                pipelineFactory.createPipelineConfiguration();

        XMLPipelineConfig.storeConfiguration(
                WebDriverConfiguration.class, webdConfig);

        XMLPipelineConfig.storeConfiguration(TransformConfiguration.class,
                                             createTransformConfig());

        // create the dynamic configuration
        DynamicProcessConfiguration dynamicConfiguration =
                pipelineFactory.createDynamicProcessConfiguration();

        // get hold of all the rules need for testing
        DynamicRuleConfigurator ruleConfigurator =
                pipelineFactory.getRuleConfigurator();

        // configure the dynamic configuration
        ruleConfigurator.configure(dynamicConfiguration);

        // store the dynamic configuration away in the pipeline configuration
        XMLPipelineConfig.storeConfiguration(
                DynamicProcessConfiguration.class,
                dynamicConfiguration);

        XMLPipelineConfig.storeConfiguration(
                ProxySessionIdOperationProcess.class,
                createProxySessionIdConfiguration());

        return XMLPipelineConfig;
    }
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.