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

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


            // Switch on remapping
            webdConf.setRemapRedirects(true);

            // Create and configure the URL rewriter.
            URLRewriteProcessConfiguration configuration =
                    new URLRewriteProcessConfiguration();
            URLPrefixRewriteManager rewriter =
                    configuration.getURLPrefixRewriteManager();

            // This rule simulates mapping a DSB service called xpv to
            // the DSB service anotherService.
            rewriter.addRewritableURLPrefix("http://www.volantis.com/dsb/xpv",
                    "http://www.volantis.com/dsb/anotherService",
View Full Code Here


     * @return the newly created URL rewrite process, null if not required.
     */
    private XMLProcess createURLRewriterProcess(String redirectURL) {
        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,
                                                  URLPrefixRewriteOperation.ADD_PREFIX);

            process = new URLRewriteProcess(urlRewriteConfig);
View Full Code Here

     */
    private XMLProcess createURLRewriterProcess(
            String contextPath, GenericURLRemapper urlRemapper) {
        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.
            //The values are constructed by mapping the remote project location
            //to the contextPath/project.
            //e.g. if there is a project mapping jsp->http://localhost:8080
View Full Code Here

        // indicate that the webdriver should attempt to remap
        // redirected URLs. This will only work if there is a rewrite
        // manager
        webdConfig.setRemapRedirects(true);

        URLRewriteProcessConfiguration urlRewriteConfig =
                    new URLRewriteProcessConfiguration();

        webdConfig.setRedirectRewriteManager(
                urlRewriteConfig.getURLPrefixRewriteManager());

        // indicate that if a redirect url cannot be remapped, we
        // should not attempt to follow the original url.
        webdConfig.setFollowUnsuccessfulRedirectRemaps(false);
                 
View Full Code Here

TOP

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

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.