public class CssHandler extends Object implements org.w3c.css.sac.DocumentHandler
StyleSheet| Constructor and Description |
|---|
CssHandler(Policy policy,
LinkedList embeddedStyleSheets,
List<String> errorMessages,
ResourceBundle messages)
Constructs a handler for stylesheets using the given policy and queue for
imported stylesheets.
|
CssHandler(Policy policy,
LinkedList embeddedStyleSheets,
List<String> errorMessages,
String tagName,
ResourceBundle messages)
Constructs a handler for inline style declarations using the given policy
and queue for imported stylesheets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
comment(String text) |
void |
endDocument(org.w3c.css.sac.InputSource source) |
void |
endFontFace() |
void |
endMedia(org.w3c.css.sac.SACMediaList media) |
void |
endPage(String name,
String pseudoPage) |
void |
endSelector(org.w3c.css.sac.SelectorList selectors) |
String |
getCleanStylesheet()
Returns the cleaned stylesheet.
|
Collection |
getErrorMessages()
Returns the error messages generated during parsing.
|
void |
ignorableAtRule(String atRule) |
void |
importStyle(String uri,
org.w3c.css.sac.SACMediaList media,
String defaultNamespaceURI) |
void |
namespaceDeclaration(String prefix,
String uri) |
void |
property(String name,
org.w3c.css.sac.LexicalUnit value,
boolean important) |
void |
startDocument(org.w3c.css.sac.InputSource arg0) |
void |
startFontFace() |
void |
startMedia(org.w3c.css.sac.SACMediaList media) |
void |
startPage(String name,
String pseudoPage) |
void |
startSelector(org.w3c.css.sac.SelectorList selectors) |
public CssHandler(Policy policy, LinkedList embeddedStyleSheets, List<String> errorMessages, ResourceBundle messages)
policy - the policy to useembeddedStyleSheets - the queue of stylesheets importedpublic CssHandler(Policy policy, LinkedList embeddedStyleSheets, List<String> errorMessages, String tagName, ResourceBundle messages)
policy - the policy to useembeddedStyleSheets - the queue of stylesheets importedtagName - the associated tag name with this inline stylepublic String getCleanStylesheet()
public Collection getErrorMessages()
public void comment(String text) throws org.w3c.css.sac.CSSException
comment in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void ignorableAtRule(String atRule) throws org.w3c.css.sac.CSSException
ignorableAtRule in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void importStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI) throws org.w3c.css.sac.CSSException
importStyle in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void namespaceDeclaration(String prefix, String uri) throws org.w3c.css.sac.CSSException
namespaceDeclaration in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startDocument(org.w3c.css.sac.InputSource arg0)
throws org.w3c.css.sac.CSSException
startDocument in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void endDocument(org.w3c.css.sac.InputSource source)
throws org.w3c.css.sac.CSSException
endDocument in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startFontFace()
throws org.w3c.css.sac.CSSException
startFontFace in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void endFontFace()
throws org.w3c.css.sac.CSSException
endFontFace in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startMedia(org.w3c.css.sac.SACMediaList media)
throws org.w3c.css.sac.CSSException
startMedia in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void endMedia(org.w3c.css.sac.SACMediaList media)
throws org.w3c.css.sac.CSSException
endMedia in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startPage(String name, String pseudoPage) throws org.w3c.css.sac.CSSException
startPage in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void endPage(String name, String pseudoPage) throws org.w3c.css.sac.CSSException
endPage in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void startSelector(org.w3c.css.sac.SelectorList selectors)
throws org.w3c.css.sac.CSSException
startSelector in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void endSelector(org.w3c.css.sac.SelectorList selectors)
throws org.w3c.css.sac.CSSException
endSelector in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionpublic void property(String name, org.w3c.css.sac.LexicalUnit value, boolean important) throws org.w3c.css.sac.CSSException
property in interface org.w3c.css.sac.DocumentHandlerorg.w3c.css.sac.CSSExceptionCopyright © 2013 The Open Web Application Security Project (OWASP). All rights reserved.