Package org.owasp.validator.css
Class ExternalCssScanner
- java.lang.Object
-
- org.owasp.validator.css.CssScanner
-
- org.owasp.validator.css.ExternalCssScanner
-
public class ExternalCssScanner extends CssScanner
-
-
Field Summary
-
Fields inherited from class org.owasp.validator.css.CssScanner
DEFAULT_TIMEOUT, messages, parser, policy
-
-
Constructor Summary
Constructors Constructor Description ExternalCssScanner(InternalPolicy policy, java.util.ResourceBundle messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
parseImportedStylesheets(java.util.LinkedList stylesheets, CssHandler handler, java.util.ArrayList errorMessages, int sizeLimit)
Parses through aLinkedList
of imported stylesheet URIs, this method parses through those stylesheets and validates them-
Methods inherited from class org.owasp.validator.css.CssScanner
main, parseImportedStylesheets, scanInlineStyle, scanStyleSheet
-
-
-
-
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 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
-
-