Package com.volantis.xml.pipeline.sax.convert

Examples of com.volantis.xml.pipeline.sax.convert.ConverterConfiguration


        XMLProcess process = null;
        if (redirectURL != null && getFollowRedirects()) {
            URLRewriteProcessConfiguration urlRewriteConfig =
                    new URLRewriteProcessConfiguration();

            ConverterConfiguration convertConfig =
                    urlRewriteConfig.getConverterConfiguration();
            convertConfig.setTuples(TUPLES);

            URLPrefixRewriteManager rewriteManager =
                    urlRewriteConfig.getURLPrefixRewriteManager();

            rewriteManager.addRewritableURLPrefix(null, redirectURL,
View Full Code Here


        ConverterTuple [] initialTuples = prepareTuples();
        ConverterTuple [] expectedTuples = new ConverterTuple[] {
                new ConverterTuple(null, "link","href")
        };

        ConverterConfiguration configuration =
                new ConverterConfiguration(initialTuples);
        ConverterTuple [] received = configuration.
                getTuples(null,"link");
        assertTrue(areTuplesArrayEquals(expectedTuples,received));
    }
View Full Code Here

        ConverterTuple [] initialTuples = prepareTuples();
        ConverterTuple [] expectedTuples = new ConverterTuple[] {
                new ConverterTuple(null, "link","href")
        };

        ConverterConfiguration configuration =
                new ConverterConfiguration();
        configuration.setTuples(initialTuples);
        ConverterTuple [] received = configuration.
                getTuples(null,"link");
        assertTrue(areTuplesArrayEquals(expectedTuples,received));

    }
View Full Code Here

        ConverterTuple [] initialTuples = prepareTuples();
        ConverterTuple [] expectedTuples = new ConverterTuple[] {
                new ConverterTuple(null, "link","href")
        };

        ConverterConfiguration configuration =
                new ConverterConfiguration();
        configuration.putTuplesByMode("html",initialTuples);
        ConverterTuple [] received = configuration.
                getTuplesByMode(null,"link","html");
        assertNotNull(received);
        assertTrue(areTuplesArrayEquals(expectedTuples,received));
        ConverterTuple [] receivedBad = configuration.
                getTuplesByMode(null,"link","xdime");
        assertNull(receivedBad);

    }
View Full Code Here

        XMLProcess process = null;
        if (contextPath != null) {
            URLRewriteProcessConfiguration urlRewriteConfig =
                    new URLRewriteProcessConfiguration();

            ConverterConfiguration convertConfig =
                    urlRewriteConfig.getConverterConfiguration();
            convertConfig.setTuples(TUPLES);

            URLPrefixRewriteManager rewriteManager =
                    urlRewriteConfig.getURLPrefixRewriteManager();

            //Add rewritableURLPrefix values for all the remote projects.
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.convert.ConverterConfiguration

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.