@NotThreadSafe
public class SuppressionHandler
extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CPE
The CPE element name.
|
static java.lang.String |
CVE
The CVE element name.
|
static java.lang.String |
CVSS_BELOW
The cvssBelow element name.
|
static java.lang.String |
CWE
The CWE element name.
|
static java.lang.String |
FILE_PATH
The file path element name.
|
static java.lang.String |
GAV
The GAV element name.
|
static java.lang.String |
NOTES
The CVE element name.
|
static java.lang.String |
PACKAGE_URL
The Package URL element name.
|
static java.lang.String |
SHA1
The sha1 hash element name.
|
static java.lang.String |
SUPPRESS
The suppress node, indicates the start of a new rule.
|
static java.lang.String |
VULNERABILITY_NAME
The vulnerabilityName element name.
|
| Constructor and Description |
|---|
SuppressionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Collects the body text of the node being processed.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handles the end element event.
|
java.util.List<SuppressionRule> |
getSuppressionRules()
Get the value of suppressionRules.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Handles the start element event.
|
public static final java.lang.String SUPPRESS
public static final java.lang.String FILE_PATH
public static final java.lang.String SHA1
public static final java.lang.String CVE
public static final java.lang.String VULNERABILITY_NAME
public static final java.lang.String NOTES
public static final java.lang.String CPE
public static final java.lang.String CWE
public static final java.lang.String GAV
public static final java.lang.String PACKAGE_URL
public static final java.lang.String CVSS_BELOW
public java.util.List<SuppressionRule> getSuppressionRules()
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - the URI of the element being processedlocalName - the local name of the element being processedqName - the qName of the element being processedattributes - the attributes of the element being processedorg.xml.sax.SAXException - thrown if there is an exception processingpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - the URI of the elementlocalName - the local name of the elementqName - the qName of the elementorg.xml.sax.SAXException - thrown if there is an exception processingpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - the char array of textstart - the start position to copy text from in the char arraylength - the number of characters to copy from the char arrayorg.xml.sax.SAXException - thrown if there is a parsing exceptionCopyright© 2012-21 Jeremy Long. All Rights Reserved.