Class XMLSanitizer

java.lang.Object
org.jboss.as.jdr.util.XMLSanitizer
All Implemented Interfaces:
Sanitizer

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

    • filter

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

    • XMLSanitizer

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

    • sanitize

      public InputStream sanitize(InputStream in) throws Exception
      Specified by:
      sanitize in interface Sanitizer
      Throws:
      Exception
    • 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: