Package org.apache.sling.xss.impl.style
Class ValidatingDocumentHandler
java.lang.Object
org.apache.sling.xss.impl.style.ValidatingDocumentHandler
- All Implemented Interfaces:
org.w3c.css.sac.DocumentHandler
-
Constructor Summary
ConstructorsConstructorDescriptionValidatingDocumentHandler(AntiSamyPolicy.CssPolicy cssPolicy, boolean isInLine) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidendDocument(org.w3c.css.sac.InputSource source) voidvoidendMedia(org.w3c.css.sac.SACMediaList media) voidvoidendSelector(org.w3c.css.sac.SelectorList selectors) voidignorableAtRule(String atRule) voidimportStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI) voidnamespaceDeclaration(String prefix, String uri) voidvoidstartDocument(org.w3c.css.sac.InputSource source) voidvoidstartMedia(org.w3c.css.sac.SACMediaList media) voidvoidstartSelector(org.w3c.css.sac.SelectorList selectors)
-
Constructor Details
-
ValidatingDocumentHandler
-
-
Method Details
-
startSelector
public void startSelector(org.w3c.css.sac.SelectorList selectors) throws org.w3c.css.sac.CSSException - Specified by:
startSelectorin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
endSelector
public void endSelector(org.w3c.css.sac.SelectorList selectors) throws org.w3c.css.sac.CSSException - Specified by:
endSelectorin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
property
public void property(String name, org.w3c.css.sac.LexicalUnit value, boolean important) throws org.w3c.css.sac.CSSException - Specified by:
propertyin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
getValidCss
-
importStyle
public void importStyle(String uri, org.w3c.css.sac.SACMediaList media, String defaultNamespaceURI) throws org.w3c.css.sac.CSSException - Specified by:
importStylein interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
startDocument
public void startDocument(org.w3c.css.sac.InputSource source) throws org.w3c.css.sac.CSSException - Specified by:
startDocumentin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
endDocument
public void endDocument(org.w3c.css.sac.InputSource source) throws org.w3c.css.sac.CSSException - Specified by:
endDocumentin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
comment
- Specified by:
commentin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
ignorableAtRule
- Specified by:
ignorableAtRulein interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
namespaceDeclaration
- Specified by:
namespaceDeclarationin interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
startMedia
public void startMedia(org.w3c.css.sac.SACMediaList media) throws org.w3c.css.sac.CSSException - Specified by:
startMediain interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
endMedia
public void endMedia(org.w3c.css.sac.SACMediaList media) throws org.w3c.css.sac.CSSException - Specified by:
endMediain interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
startPage
- Specified by:
startPagein interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
endPage
- Specified by:
endPagein interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
startFontFace
public void startFontFace() throws org.w3c.css.sac.CSSException- Specified by:
startFontFacein interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-
endFontFace
public void endFontFace() throws org.w3c.css.sac.CSSException- Specified by:
endFontFacein interfaceorg.w3c.css.sac.DocumentHandler- Throws:
org.w3c.css.sac.CSSException
-