Package org.zaproxy.zap.extension.ascan
Class ScanProgressItem
- java.lang.Object
-
- org.zaproxy.zap.extension.ascan.ScanProgressItem
-
public class ScanProgressItem extends java.lang.Object
Class for Visual Plugin Progress management
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_COMPLETED
static int
STATUS_PENDING
static int
STATUS_RUNNING
-
Constructor Summary
Constructors Constructor Description ScanProgressItem(HostProcess hProcess, Plugin plugin, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getAttackStrenghtLabel()
Deprecated.(2.11.0) UsegetAttackStrengthLabel()
java.lang.String
getAttackStrengthLabel()
long
getElapsedTime()
java.lang.String
getNameLabel()
protected Plugin
getPlugin()
int
getProgressPercentage()
Get back the percentage of completion.int
getReqCount()
java.lang.String
getSkippedReason()
Gets the reason why the plugin was skipped.java.lang.String
getStatusLabel()
boolean
isCompleted()
boolean
isRunning()
boolean
isSkipped()
Tells whether or not the plugin was skipped.void
skip()
java.lang.String
toString()
-
-
-
Field Detail
-
STATUS_PENDING
public static final int STATUS_PENDING
- See Also:
- Constant Field Values
-
STATUS_RUNNING
public static final int STATUS_RUNNING
- See Also:
- Constant Field Values
-
STATUS_COMPLETED
public static final int STATUS_COMPLETED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScanProgressItem
public ScanProgressItem(HostProcess hProcess, Plugin plugin, int status)
- Parameters:
plugin
-status
-
-
-
Method Detail
-
getNameLabel
public java.lang.String getNameLabel()
- Returns:
-
getAttackStrenghtLabel
@Deprecated public java.lang.String getAttackStrenghtLabel()
Deprecated.(2.11.0) UsegetAttackStrengthLabel()
-
getAttackStrengthLabel
public java.lang.String getAttackStrengthLabel()
- Returns:
-
getStatusLabel
public java.lang.String getStatusLabel()
- Returns:
-
getElapsedTime
public long getElapsedTime()
-
getProgressPercentage
public int getProgressPercentage()
Get back the percentage of completion.- Returns:
- the percentage value from 0 to 100
-
isRunning
public boolean isRunning()
- Returns:
-
isCompleted
public boolean isCompleted()
- Returns:
-
isSkipped
public boolean isSkipped()
Tells whether or not the plugin was skipped.- Returns:
true
if the plugin was skipped,false
otherwise.- Since:
- 2.4.0
- See Also:
getSkippedReason()
-
getSkippedReason
public java.lang.String getSkippedReason()
Gets the reason why the plugin was skipped.- Returns:
- the reason why the plugin was skipped, might be
null
if there's no reason - Since:
- 2.6.0
- See Also:
isSkipped()
-
skip
public void skip()
-
getPlugin
protected Plugin getPlugin()
- Returns:
-
getReqCount
public int getReqCount()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-