Class HintHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.owasp.dependencycheck.xml.hints.HintHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

@NotThreadSafe public class HintHandler extends DefaultHandler
A handler to load hint rules.
Author:
Jeremy Long
  • Constructor Details

    • HintHandler

      public HintHandler()
  • Method Details

    • getHintRules

      public List<HintRule> getHintRules()
      Returns the list of hint rules.
      Returns:
      the value of hintRules
    • getVendorDuplicatingHintRules

      public List<VendorDuplicatingHintRule> getVendorDuplicatingHintRules()
      Returns the list of vendor duplicating hint rules.
      Returns:
      the list of vendor duplicating hint rules
    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attr) throws SAXException
      Handles the start element event.
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
      Parameters:
      uri - the URI of the element being processed
      localName - the local name of the element being processed
      qName - the qName of the element being processed
      attr - the attributes of the element being processed
      Throws:
      SAXException - thrown if there is an exception processing
    • endElement

      public void endElement(String uri, String localName, String qName) throws SAXException
      Handles the end element event.
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class DefaultHandler
      Parameters:
      uri - the element's URI
      localName - the local name
      qName - the qualified name
      Throws:
      SAXException - thrown if there is an exception processing the element