Uses of Class
org.owasp.validator.html.PolicyException
Packages that use PolicyException
Package
Description
This package contains classes to handle the sanitization of HTML markup.
This package contains implementation classes used by AntiSamy and should not be directly used by clients.
-
Uses of PolicyException in org.owasp.validator.html
Methods in org.owasp.validator.html that throw PolicyExceptionModifier and TypeMethodDescriptionstatic PolicyPolicy.getInstance()Construct a Policy using the default policy file location ("antisamy.xml").static PolicyPolicy.getInstance(File file) Construct a Policy from the File object passed in.static PolicyPolicy.getInstance(InputStream inputStream) Construct a Policy from the InputStream object passed in.static PolicyPolicy.getInstance(String filename) Construct a Policy based on the file whose name is passed in.static PolicyPolicy.getInstance(URL url) Construct a Policy from the target of the URL passed in.protected static Policy.ParseContextPolicy.getParseContext(Element topLevelElement, URL baseUrl) protected static Policy.ParseContextPolicy.getSimpleParseContext(Element topLevelElement) protected static InputSourcePolicy.getSourceFromUrl(URL baseUrl) protected static ElementPolicy.getTopLevelElement(URL baseUrl) protected static ElementPolicy.getTopLevelElement(InputSource source, Callable<InputSource> getResetSource) Thescan()family of methods are the only methods the outside world should be calling to invoke AntiSamy.This method scans the supplied HTML input and produces clean/sanitized results per the previously configured AntiSamy policy using the specified DOM or SAX parser.This method scans the supplied HTML input and produces clean/sanitized results per the supplied AntiSamy policy file using the DOM parser.This method scans the supplied HTML input and produces clean/sanitized results per the supplied AntiSamy policy file using the DOM parser.This method scans the supplied HTML input and produces clean/sanitized results per the supplied AntiSamy policy using the DOM parser.This method scans the supplied HTML input and produces clean/sanitized results per the supplied AntiSamy policy using the specified DOM or SAX parser. -
Uses of PolicyException in org.owasp.validator.html.scan
Constructors in org.owasp.validator.html.scan that throw PolicyExceptionModifierConstructorDescriptionConstruct an AntiSamy Scanner instance that uses the default AntiSamy policy file.Create an instance of this class configured to use the default AntiSamy policy.