Class ScanHost

All Implemented Interfaces:
NessusResponse.ResponseChild<ScanHost,​ScanResponse>, ScanResponse.ScanResponseChild<ScanHost>, DbPojo, MapLookupPojo<ScanHost>

@Entity(name="ScanHost")
public class ScanHost
extends ScanResponse.MultiChildLookup<ScanHost>
implements MapLookupPojo<ScanHost>
Represents an object from the hosts array returned by the Nessus API in /scans/<scan-id>
  • Field Details

  • Constructor Details

  • Method Details

    • getSeveritycount

      public SeverityCount getSeveritycount()
      Gets severitycount.
      Returns:
      the severitycount
    • setSeveritycount

      public void setSeveritycount​(SeverityCount severitycount)
      Sets severitycount.
      Parameters:
      severitycount - the severitycount
    • getSeverityCounts

      public java.util.List<SeverityLevelCount> getSeverityCounts()
      Gets severity counts.
      Returns:
      the severity counts
    • setSeverityCounts

      public void setSeverityCounts​(java.util.List<SeverityLevelCount> severityCounts)
      Sets severity counts.
      Parameters:
      severityCounts - the severity counts
    • _prepare

      public void _prepare()
      Description copied from interface: DbPojo
      Perform any operations necessary to prepare this pojo for insertion or updating in the database
      Specified by:
      _prepare in interface DbPojo
    • _set

      public void _set​(ScanHost o)
      Description copied from interface: MapLookupPojo
      Set the values in this POJO to be identical to another POJO representing the same DB record
      Specified by:
      _set in interface MapLookupPojo<ScanHost>
    • _match

      public boolean _match​(ScanHost o)
      Description copied from interface: MapLookupPojo
      Determine if this pojo represents the same DB record as another POJO of the same type. Note that this is NOT the same as the equals() method (though it may be in certain cases). Equals may be used to determine if two pojos of the same type contain all of the same values, regardless of whether they represent the same DB record (depending on implementation) while _match determines only if they represent the same DB record even if some of the values may not be equivalent. In many cases the two methods may be the same, but their purpose is different.
      Specified by:
      _match in interface MapLookupPojo<ScanHost>
      Parameters:
      o - the other pojo to match
      Returns:
      true if the two pojos represent the same DB record, false if not
    • _getSearchMap

      public java.util.Map<java.lang.String,​java.lang.Object> _getSearchMap()
      Description copied from interface: MapLookupPojo
      Return a map to be used by the POJO type's dao, to find the database record matching the same record that this pojo represents
      Specified by:
      _getSearchMap in interface MapLookupPojo<ScanHost>
      Returns:
    • getExtraJsonMap

      public java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode> getExtraJsonMap()
      Description copied from class: ExtensibleJsonPojo
      Gets extra json map for serialization
      Overrides:
      getExtraJsonMap in class ExtensibleJsonPojo
      Returns:
      the extra json map
    • putExtraJson

      public void putExtraJson​(java.lang.String key, java.lang.Object value)
      Description copied from class: ExtensibleJsonPojo
      Puts extra json during deserialization
      Overrides:
      putExtraJson in class ExtensibleJsonPojo
      Parameters:
      key - the key
      value - the value
    • getHostId

      public java.lang.Integer getHostId()
      Gets host id.
      Returns:
      the host id
    • setHostId

      public void setHostId​(java.lang.Integer hostId)
      Sets host id.
      Parameters:
      hostId - the host id
    • getTotalChecksConsidered

      public java.lang.Integer getTotalChecksConsidered()
      Gets total checks considered.
      Returns:
      the total checks considered
    • setTotalChecksConsidered

      public void setTotalChecksConsidered​(java.lang.Integer totalChecksConsidered)
      Sets total checks considered.
      Parameters:
      totalChecksConsidered - the total checks considered
    • getNumChecksConsidered

      public java.lang.Integer getNumChecksConsidered()
      Gets num checks considered.
      Returns:
      the num checks considered
    • setNumChecksConsidered

      public void setNumChecksConsidered​(java.lang.Integer numChecksConsidered)
      Sets num checks considered.
      Parameters:
      numChecksConsidered - the num checks considered
    • getScanProgressTotal

      public java.lang.Integer getScanProgressTotal()
      Gets scan progress total.
      Returns:
      the scan progress total
    • setScanProgressTotal

      public void setScanProgressTotal​(java.lang.Integer scanProgressTotal)
      Sets scan progress total.
      Parameters:
      scanProgressTotal - the scan progress total
    • getScanProgressCurrent

      public java.lang.Integer getScanProgressCurrent()
      Gets scan progress current.
      Returns:
      the scan progress current
    • setScanProgressCurrent

      public void setScanProgressCurrent​(java.lang.Integer scanProgressCurrent)
      Sets scan progress current.
      Parameters:
      scanProgressCurrent - the scan progress current
    • getHostIndex

      public java.lang.Integer getHostIndex()
      Gets host index.
      Returns:
      the host index
    • setHostIndex

      public void setHostIndex​(java.lang.Integer hostIndex)
      Sets host index.
      Parameters:
      hostIndex - the host index
    • getScore

      public java.lang.Integer getScore()
      Gets score.
      Returns:
      the score
    • setScore

      public void setScore​(java.lang.Integer score)
      Sets score.
      Parameters:
      score - the score
    • getProgress

      public java.lang.String getProgress()
      Gets progress.
      Returns:
      the progress
    • setProgress

      public void setProgress​(java.lang.String progress)
      Sets progress.
      Parameters:
      progress - the progress
    • getOfflineCritical

      public java.lang.Integer getOfflineCritical()
      Gets offline critical.
      Returns:
      the offline critical
    • setOfflineCritical

      public void setOfflineCritical​(java.lang.Integer offlineCritical)
      Sets offline critical.
      Parameters:
      offlineCritical - the offline critical
    • getOfflineHigh

      public java.lang.Integer getOfflineHigh()
      Gets offline high.
      Returns:
      the offline high
    • setOfflineHigh

      public void setOfflineHigh​(java.lang.Integer offlineHigh)
      Sets offline high.
      Parameters:
      offlineHigh - the offline high
    • getOfflineMedium

      public java.lang.Integer getOfflineMedium()
      Gets offline medium.
      Returns:
      the offline medium
    • setOfflineMedium

      public void setOfflineMedium​(java.lang.Integer offlineMedium)
      Sets offline medium.
      Parameters:
      offlineMedium - the offline medium
    • getOfflineLow

      public java.lang.Integer getOfflineLow()
      Gets offline low.
      Returns:
      the offline low
    • setOfflineLow

      public void setOfflineLow​(java.lang.Integer offlineLow)
      Sets offline low.
      Parameters:
      offlineLow - the offline low
    • getOfflineInfo

      public java.lang.Integer getOfflineInfo()
      Gets offline info.
      Returns:
      the offline info
    • setOfflineInfo

      public void setOfflineInfo​(java.lang.Integer offlineInfo)
      Sets offline info.
      Parameters:
      offlineInfo - the offline info
    • getCritical

      public java.lang.Integer getCritical()
      Gets critical.
      Returns:
      the critical
    • setCritical

      public void setCritical​(java.lang.Integer critical)
      Sets critical.
      Parameters:
      critical - the critical
    • getHigh

      public java.lang.Integer getHigh()
      Gets high.
      Returns:
      the high
    • setHigh

      public void setHigh​(java.lang.Integer high)
      Sets high.
      Parameters:
      high - the high
    • getMedium

      public java.lang.Integer getMedium()
      Gets medium.
      Returns:
      the medium
    • setMedium

      public void setMedium​(java.lang.Integer medium)
      Sets medium.
      Parameters:
      medium - the medium
    • getLow

      public java.lang.Integer getLow()
      Gets low.
      Returns:
      the low
    • setLow

      public void setLow​(java.lang.Integer low)
      Sets low.
      Parameters:
      low - the low
    • getInfo

      public java.lang.Integer getInfo()
      Gets info.
      Returns:
      the info
    • setInfo

      public void setInfo​(java.lang.Integer info)
      Sets info.
      Parameters:
      info - the info
    • getSeverity

      public java.lang.Integer getSeverity()
      Gets severity.
      Returns:
      the severity
    • setSeverity

      public void setSeverity​(java.lang.Integer severity)
      Sets severity.
      Parameters:
      severity - the severity
    • getHostname

      public Hostname getHostname()
      Gets hostname.
      Returns:
      the hostname
    • setHostname

      public void setHostname​(Hostname hostname)
      Sets hostname.
      Parameters:
      hostname - the hostname