Package net.sf.sahi.stream.filter

Examples of net.sf.sahi.stream.filter.CharacterFilter


        this.isSSL = isSSL;
        if (responseCode < 300 || responseCode >= 400) { // Response code other than 3xx
            boolean html = isHTML();
            charset(); // set it
            if (html) {
              if (Configuration.addCharacterFilter()) addFilter(new CharacterFilter(charset));
              if (Configuration.addJSModifierFilter()) addFilter(new JSModifierFilter(charset));
              if (Configuration.addHTMLModifierFilter()) addFilter(new HTMLModifierFilter(charset, isXHTML(), isSSL));
              addFilter(new NoCacheFilter());
            } else if (isJs()) {
              if (Configuration.addCharacterFilter()) addFilter(new CharacterFilter(charset));
              if (Configuration.addJSModifierFilter()) addFilter(new JSModifierFilter(charset));
//              Removing NoCacheFilter because it slows down pages a lot.
//              Test on http://sourceforge.net main page. min.js should be fetched from cache.             
//              addFilter(new NoCacheFilter()); 
            }
View Full Code Here

TOP

Related Classes of net.sf.sahi.stream.filter.CharacterFilter

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.