Class HintHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.owasp.dependencycheck.xml.hints.HintHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
A handler to load hint rules.
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String uri, String localName, String qName) Handles the end element event.Returns the list of hint rules.Returns the list of vendor duplicating hint rules.voidstartElement(String uri, String localName, String qName, Attributes attr) Handles the start element event.Methods inherited from class DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Constructor Details
-
HintHandler
public HintHandler()
-
-
Method Details
-
getHintRules
-
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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
uri- the URI of the element being processedlocalName- the local name of the element being processedqName- the qName of the element being processedattr- the attributes of the element being processed- Throws:
SAXException- thrown if there is an exception processing
-
endElement
Handles the end element event.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Parameters:
uri- the element's URIlocalName- the local nameqName- the qualified name- Throws:
SAXException- thrown if there is an exception processing the element
-