Class XMLSanitizer

  • All Implemented Interfaces:
    Sanitizer

    public class XMLSanitizer
    extends Object
    Sanitizer subclass that removes the contents of the matched xpath expression in pattern.
    • Field Detail

      • filter

        protected org.jboss.vfs.VirtualFileFilter filter
    • Constructor Detail

      • XMLSanitizer

        public XMLSanitizer​(String pattern,
                            org.jboss.vfs.VirtualFileFilter filter)
                     throws Exception
        Throws:
        Exception
    • Method Detail

      • accepts

        public boolean accepts​(org.jboss.vfs.VirtualFile resource)
        returns whether or not a VirtualFile should be processed by this sanitizer.
        Specified by:
        accepts in interface Sanitizer
        Parameters:
        resource - VirtualFile resource to test
        Returns: