Package org.tuckey.web.filters.urlrewrite.utils

Examples of org.tuckey.web.filters.urlrewrite.utils.ModRewriteConfLoader


                if (is == null) {
                    throw new IOException("Cannot load mod rewrite config file: " + modRewriteConfFile);
                }
                try {
                    String text = camelContext.getTypeConverter().mandatoryConvertTo(String.class, is);
                    ModRewriteConfLoader loader = new ModRewriteConfLoader();
                    conf = new Conf();
                    loader.process(text, conf);
                } finally {
                    IOHelper.close(is);
                }
            } else if (modRewriteConfText != null) {
                LOG.debug("Using modRewriteConfText: {} as config for urlRewrite", modRewriteConfText);
                ModRewriteConfLoader loader = new ModRewriteConfLoader();
                conf = new Conf();
                loader.process(modRewriteConfText, conf);
            } else if (configFile != null) {
                LOG.debug("Using config file: {} as config for urlRewrite", configFile);
                InputStream is = camelContext.getClassResolver().loadResourceAsStream(configFile);
                if (is == null) {
                    throw new IOException("Cannot load config file: " + configFile);
View Full Code Here

TOP

Related Classes of org.tuckey.web.filters.urlrewrite.utils.ModRewriteConfLoader

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.