Package org.owasp.validator.css
Class ExternalCssScanner
java.lang.Object
org.owasp.validator.css.CssScanner
org.owasp.validator.css.ExternalCssScanner
-
Field Summary
Fields inherited from class org.owasp.validator.css.CssScanner
DEFAULT_TIMEOUT, messages, parser, policy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
parseImportedStylesheets
(LinkedList stylesheets, CssHandler handler, ArrayList errorMessages, int sizeLimit) Parses through aLinkedList
of imported stylesheet URIs, this method parses through those stylesheets and validates themMethods inherited from class org.owasp.validator.css.CssScanner
main, parseImportedStylesheets, scanInlineStyle, scanStyleSheet
-
Constructor Details
-
ExternalCssScanner
-
-
Method Details
-
parseImportedStylesheets
protected void parseImportedStylesheets(LinkedList stylesheets, CssHandler handler, ArrayList errorMessages, int sizeLimit) throws ScanException Parses through aLinkedList
of imported stylesheet URIs, this method parses through those stylesheets and validates them- Parameters:
stylesheets
- theLinkedList
of stylesheet URIs to parsehandler
- theCssHandler
to use for parsingerrorMessages
- the list of error messages to append tosizeLimit
- the limit on the total size in bites of any imported stylesheets- Throws:
ScanException
- if an error occurs during scanning
-