Class ControlStatusBridge

java.lang.Object
ai.attackframework.tools.burp.utils.ControlStatusBridge

public final class ControlStatusBridge extends Object
Bridges runtime events to the Config control-status area.

The exporter has background paths such as spill handling that may need to post a user-visible status without direct access to ConfigPanel. The most recently registered listener wins. This utility is process-local and thread-safe.

  • Method Details

    • register

      public static void register(Consumer<String> listener)
      Registers the current control-status listener.

      Callers typically register from the EDT via ConfigPanel. Any previously registered listener is replaced.

      Parameters:
      listener - consumer that accepts user-visible status text; may be null
    • clear

      public static void clear()
      Clears the registered listener.

      Used by test reset paths and any runtime teardown that should stop background status delivery.

    • post

      public static void post(String message)
      Posts a status message when a listener is registered.

      Blank messages are ignored. This method does not enforce EDT delivery; the registered listener is responsible for marshaling to the correct thread when needed.

      Parameters:
      message - user-visible status text