@NotThreadSafe public class SuppressionHandler extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CPE
The CPE element name.
|
static String |
CVE
The CVE element name.
|
static String |
CVSS_BELOW
The cvssBelow element name.
|
static String |
CWE
The CWE element name.
|
static String |
FILE_PATH
The file path element name.
|
static String |
GAV
The GAV element name.
|
static String |
NOTES
The CVE element name.
|
static String |
PACKAGE_URL
The Package URL element name.
|
static String |
SHA1
The sha1 hash element name.
|
static String |
SUPPRESS
The suppress node, indicates the start of a new rule.
|
static 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(String uri,
String localName,
String qName)
Handles the end element event.
|
List<SuppressionRule> |
getSuppressionRules()
Get the value of suppressionRules.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Handles the start element event.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static final String SUPPRESS
public static final String FILE_PATH
public static final String SHA1
public static final String CVE
public static final String VULNERABILITY_NAME
public static final String NOTES
public static final String CPE
public static final String CWE
public static final String GAV
public static final String PACKAGE_URL
public static final String CVSS_BELOW
public List<SuppressionRule> getSuppressionRules()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class 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 processedSAXException - thrown if there is an exception processingpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandleruri - the URI of the elementlocalName - the local name of the elementqName - the qName of the elementSAXException - thrown if there is an exception processingpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class 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 arraySAXException - thrown if there is a parsing exceptionCopyright © 2012–2020 OWASP. All rights reserved.