java.lang.Object
com.predic8.membrane.core.interceptor.xmlcontentfilter.XMLElementFinder

@ThreadSafe public class XMLElementFinder extends Object
Checks whether an InputStream is XML and contains any of a set of element names. The element names can have a namespace (in which case it also has to match) or not (if the namespace of an element passed to the constructor is the default namespace, it is treated as "wildcard namespace").
  • Constructor Details

    • XMLElementFinder

      public XMLElementFinder(List<QName> elements)
  • Method Details

    • matches

      public boolean matches(InputStream is)
      Returns:
      true, if the input is well-formed XML and any of the elements were found