Class Alert

java.lang.Object
org.zaproxy.clientapi.core.Alert

public class Alert extends Object
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Gets the ID of the alert.
      Returns:
      the ID of the alert.
      Since:
      1.1.0
    • getPluginId

      public String 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

      public String getMessageId()
      Gets the ID of the HTTP message of the alert.
      Returns:
      the ID of the HTTP message.
      Since:
      1.1.0
    • getName

      public String getName()
      Gets the name of the alert.
      Returns:
      the name of the alert
      Since:
      1.1.0
    • setName

      public void setName(String name)
      Sets the name of the alert.
      Parameters:
      name - the name of the alert
      Since:
      1.1.0
    • getAlert

      @Deprecated public String getAlert()
      Deprecated.
      (1.1.0) Use getName() instead.
      Gets the name of the alert.
      Returns:
      the name of the alert
    • setAlert

      @Deprecated public void setAlert(String name)
      Deprecated.
      (1.1.0) Use setName(String) instead.
      Sets the name of the alert.
      Parameters:
      name - the name of the alert
    • getRisk

      public Alert.Risk getRisk()
    • setRisk

      public void setRisk(Alert.Risk risk)
    • setRisk

      public void setRisk(String risk)
    • getReliability

      @Deprecated public Alert.Reliability getReliability()
      Deprecated.
      getConfidence() Use of reliability has been deprecated in favour of using confidence
    • setReliability

      @Deprecated public void setReliability(Alert.Reliability reliability)
      Deprecated.
      setConfidence(Confidence) Use of reliability has been deprecated in favour of using confidence
    • setReliability

      @Deprecated public void setReliability(String reliability)
      Deprecated.
      setConfidence(String) Use of reliability has been deprecated in favour of using confidence
    • getConfidence

      public Alert.Confidence getConfidence()
    • setConfidence

      public void setConfidence(Alert.Confidence confidence)
    • setConfidence

      public void setConfidence(String confidence)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getOther

      public String getOther()
    • setOther

      public void setOther(String other)
    • getParam

      public String getParam()
    • setParam

      public void setParam(String param)
    • getAttack

      public String getAttack()
    • getDescription

      public String getDescription()
    • getReference

      public String getReference()
    • getSolution

      public String getSolution()
    • getEvidence

      public String getEvidence()
    • getCweId

      public int getCweId()
    • getWascId

      public int getWascId()
    • matches

      public boolean matches(Alert alertFilter)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object