Package com.volantis.xml.pipeline.sax.dynamic

Examples of com.volantis.xml.pipeline.sax.dynamic.DynamicProcessConfiguration


    // javadoc inherited
    public DynamicProcess
            createDynamicProcess(XMLPipelineConfiguration configuration) {
        // retrieve the DynamicProcessConfiguration from the pipeline
        // configuration
        DynamicProcessConfiguration dynamicConfig =
                SimpleDynamicProcess.getDynamicConfiguration(configuration);
        return wrapper.createDynamicProcess(dynamicConfig);
    }
View Full Code Here


    public static DynamicProcessConfiguration getDynamicConfiguration(
            XMLPipelineConfiguration configuration) {
        // retrieve the DynamicProcessConfiguration from the pipeline
        // configuration
        DynamicProcessConfiguration dynamicConfig =
                (DynamicProcessConfiguration)
                configuration.retrieveConfiguration(
                        DynamicProcessConfiguration.class);

        if (null == dynamicConfig) {
View Full Code Here

     * @return The newly created pipeline configuration.
     */
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        XMLPipelineConfiguration config = super.createPipelineConfiguration();

        DynamicProcessConfiguration dynamicConfig =
                (DynamicProcessConfiguration)
                config.retrieveConfiguration(DynamicProcessConfiguration.class);

        NamespaceRuleSet namespaceRules =
                dynamicConfig.getNamespaceRules(
                        Namespace.PIPELINE.getURI(),
                        true);
        namespaceRules.addRule("for-each", new ForEachRule());
        return config;
    }
View Full Code Here

        // factory a pipeline configuration
        XMLPipelineConfiguration pipelineConfiguration =
            factory.createPipelineConfiguration();
       
        // factor a DynamicProcessConfiguration
        DynamicProcessConfiguration dynamicConfig =
                factory.createDynamicProcessConfiguration();
       
        // register the DynamicProcessConfiguration with the pipeline
        // configuration
        pipelineConfiguration.storeConfiguration(
View Full Code Here

     * Tests the
     * {@link XMLPipelineFactory#createDynamicProcessConfiguration} method
     * @throws Exception if an error occurs
     */
    public void testCreateDynamicProcessConfiguration() throws Exception {
        DynamicProcessConfiguration config =
                factory.createDynamicProcessConfiguration();
        // ensure a class of the right type was factored
        assertEquals("createDynamicProcessConfiguration should factor a " +
                     "SimpleDynamicProcessConfiguration instance",
                     SimpleDynamicProcessConfiguration.class,
                     config.getClass());
    }
View Full Code Here

     * Tests the {@link XMLPipelineFactory#createPipelineConfiguration}
     * method.
     * @throws Exception if an error occurs.
     */
    public void testCreatePipelineConfiguration() throws Exception {
        DynamicProcessConfiguration config =
                factory.createDynamicProcessConfiguration();
       
        // ensure an object of the correct type was factored
        assertEquals("createPipelineConfiguration should factor a " +
                     "SimpleDynamicProcessConfiguration instance",
                     SimpleDynamicProcessConfiguration.class,
                     config.getClass());
    }
View Full Code Here

       
        // factory a pipeline configuration
        pipelineConfiguration = factory.createPipelineConfiguration();
       
        // factor a DynamicProcessConfiguration
        DynamicProcessConfiguration dynamicConfig =
                factory.createDynamicProcessConfiguration();
       
        // register the DynamicProcessConfiguration with the pipeline
        // configuration
        pipelineConfiguration.storeConfiguration(
View Full Code Here

        // 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",
                new AbstractAddProcessRule() {
                    protected XMLProcess createProcess(DynamicProcess dynamicProcess,
View Full Code Here

        pipelineConfig.storeConfiguration(
                AbsoluteToRelativeURLConfiguration.class,
                createAbsoluteToRelativeURLConfiguration());

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

        // get hold of all the rules need for testing
        DynamicRuleConfigurator ruleConfigurator =
                getPipelineFactory().getRuleConfigurator();
View Full Code Here

        XMLPipelineConfiguration configuration = null;
        try {
            configuration =
                    new IntegrationTestHelper().getPipelineConfiguration();

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

View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.dynamic.DynamicProcessConfiguration

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.