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 voidparseImportedStylesheets(java.util.LinkedList stylesheets, CssHandler handler, java.util.ArrayList errorMessages, int sizeLimit)Parses through aLinkedListof 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 ScanExceptionParses through aLinkedListof imported stylesheet URIs, this method parses through those stylesheets and validates them- Parameters:
stylesheets- theLinkedListof stylesheet URIs to parsehandler- theCssHandlerto 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
-
-