Class ExternalCssScanner


  • public class ExternalCssScanner
    extends CssScanner
    • Constructor Detail

      • ExternalCssScanner

        public ExternalCssScanner​(InternalPolicy policy,
                                  java.util.ResourceBundle messages)
    • Method Detail

      • parseImportedStylesheets

        protected void parseImportedStylesheets​(java.util.LinkedList stylesheets,
                                                CssHandler handler,
                                                java.util.ArrayList errorMessages,
                                                int sizeLimit)
                                         throws ScanException
        Parses through a LinkedList of imported stylesheet URIs, this method parses through those stylesheets and validates them
        Parameters:
        stylesheets - the LinkedList of stylesheet URIs to parse
        handler - the CssHandler to use for parsing
        errorMessages - the list of error messages to append to
        sizeLimit - the limit on the total size in bites of any imported stylesheets
        Throws:
        ScanException - if an error occurs during scanning