Package org.zaproxy.clientapi.core
Class Alert
java.lang.Object
org.zaproxy.clientapi.core.Alert
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumDeprecated.static enum -
Constructor Summary
ConstructorsConstructorDescriptionAlert(String name, String url, Alert.Risk risk, Alert.Confidence confidence) Alert(String name, String url, Alert.Risk risk, Alert.Confidence confidence, String param, String other) Alert(String name, String url, Alert.Risk risk, Alert.Confidence confidence, String param, String other, String attack, String description, String reference, String solution, String evidence, int cweId, int wascId) Alert(ApiResponseSet apiResponseSet) Constructs anAlertfrom the givenApiResponseSet. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAlert()Deprecated.(1.1.0) UsegetName()instead.intgetCweId()getId()Gets the ID of the alert.Gets the ID of the HTTP message of the alert.getName()Gets the name of the alert.getOther()getParam()Gets the ID of the plugin/scanner that raised the alert.Deprecated.getConfidence()Use of reliability has been deprecated in favour of using confidencegetRisk()getUrl()intinthashCode()booleanvoidDeprecated.(1.1.0) UsesetName(String)instead.voidsetConfidence(String confidence) voidsetConfidence(Alert.Confidence confidence) voidSets the name of the alert.voidvoidvoidsetReliability(String reliability) Deprecated.setConfidence(String)Use of reliability has been deprecated in favour of using confidencevoidsetReliability(Alert.Reliability reliability) Deprecated.setConfidence(Confidence)Use of reliability has been deprecated in favour of using confidencevoidvoidsetRisk(Alert.Risk risk) voidtoString()
-
Constructor Details
-
Alert
Constructs anAlertfrom the givenApiResponseSet.- Parameters:
apiResponseSet- theApiResponseSetreturned from an alert related ZAP API call.- Since:
- 1.1.0
-
Alert
-
Alert
-
Alert
public Alert(String name, String url, Alert.Risk risk, Alert.Confidence confidence, String param, String other) -
Alert
-
Alert
-
-
Method Details
-
getId
Gets the ID of the alert.- Returns:
- the ID of the alert.
- Since:
- 1.1.0
-
getPluginId
Gets the ID of the plugin/scanner that raised the alert.- Returns:
- the ID of the plugin/scanner that raised the alert.
- Since:
- 1.1.0
-
getMessageId
Gets the ID of the HTTP message of the alert.- Returns:
- the ID of the HTTP message.
- Since:
- 1.1.0
-
getName
Gets the name of the alert.- Returns:
- the name of the alert
- Since:
- 1.1.0
-
setName
Sets the name of the alert.- Parameters:
name- the name of the alert- Since:
- 1.1.0
-
getAlert
Deprecated.(1.1.0) UsegetName()instead.Gets the name of the alert.- Returns:
- the name of the alert
-
setAlert
Deprecated.(1.1.0) UsesetName(String)instead.Sets the name of the alert.- Parameters:
name- the name of the alert
-
getRisk
-
setRisk
-
setRisk
-
getReliability
Deprecated.getConfidence()Use of reliability has been deprecated in favour of using confidence -
setReliability
Deprecated.setConfidence(Confidence)Use of reliability has been deprecated in favour of using confidence -
setReliability
Deprecated.setConfidence(String)Use of reliability has been deprecated in favour of using confidence -
getConfidence
-
setConfidence
-
setConfidence
-
getUrl
-
setUrl
-
getOther
-
setOther
-
getParam
-
setParam
-
getAttack
-
getDescription
-
getReference
-
getSolution
-
getEvidence
-
getCweId
public int getCweId() -
getWascId
public int getWascId() -
matches
-
hashCode
public int hashCode() -
equals
-
toString
-
Alert.Confidence.