Package org.zaproxy.zap.extension.ascan
Class ActiveScanEventPublisher
- java.lang.Object
-
- org.zaproxy.zap.model.ScanEventPublisher
-
- org.zaproxy.zap.extension.ascan.ActiveScanEventPublisher
-
- All Implemented Interfaces:
EventPublisher
public class ActiveScanEventPublisher extends ScanEventPublisher
-
-
Field Summary
-
Fields inherited from class org.zaproxy.zap.model.ScanEventPublisher
SCAN_COMPLETED_EVENT, SCAN_ID, SCAN_PAUSED_EVENT, SCAN_PROGRESS, SCAN_PROGRESS_EVENT, SCAN_RESUMED_EVENT, SCAN_STARTED_EVENT, SCAN_STOPPED_EVENT, TARGET_URL, USER_ID, USER_NAME
-
-
Constructor Summary
Constructors Constructor Description ActiveScanEventPublisher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActiveScanEventPublisher
getPublisher()
java.lang.String
getPublisherName()
The name by which the publisher is know - typically the full class name of the publisher.static void
publishScanEvent(java.lang.String event, int scanId)
static void
publishScanEvent(java.lang.String event, int scanId, Target target, User user)
static void
publishScanProgressEvent(int scanId, int scanProgress)
-
Methods inherited from class org.zaproxy.zap.model.ScanEventPublisher
getEvents, publishScanEvent, publishScanEvent, publishScanEvent, publishScanEvent, publishScanProgressEvent
-
-
-
-
Method Detail
-
getPublisherName
public java.lang.String getPublisherName()
Description copied from interface:EventPublisher
The name by which the publisher is know - typically the full class name of the publisher. Only one publisher can register with a given name.- Specified by:
getPublisherName
in interfaceEventPublisher
- Overrides:
getPublisherName
in classScanEventPublisher
- Returns:
- the name of the publisher, never
null
.
-
getPublisher
public static ActiveScanEventPublisher getPublisher()
-
publishScanEvent
public static void publishScanEvent(java.lang.String event, int scanId)
-
publishScanEvent
public static void publishScanEvent(java.lang.String event, int scanId, Target target, User user)
-
publishScanProgressEvent
public static void publishScanProgressEvent(int scanId, int scanProgress)
-
-