Class ConfigController

java.lang.Object
ai.attackframework.tools.burp.ui.controller.ConfigController

public final class ConfigController extends Object
Coordinates long-running operations for the Config UI: export/import and OpenSearch connectivity/index management.

Each async method runs work on a SwingWorker background thread and marshals UI updates to the EDT via the ConfigController.Ui callbacks. Callers may invoke methods from any thread.

  • Constructor Details

  • Method Details

    • exportConfigAsync

      public void exportConfigAsync(Path out, String json)
      Writes the provided config JSON to disk asynchronously.

      Work is performed on a background thread; status is published to ConfigController.Ui.onControlStatus(java.lang.String) on the EDT.

      Parameters:
      out - destination path (will be created with parent directories)
      json - serialized configuration payload
    • importConfigAsync

      public void importConfigAsync(Path in)
      Reads and parses a configuration file asynchronously.

      On success, forwards the parsed state to the UI on the EDT and reports status through ConfigController.Ui.onControlStatus(java.lang.String). Errors are surfaced as status strings.

      Parameters:
      in - config file to load
    • testConnectionAsync

      public void testConnectionAsync(String url)
      Tests connectivity to an OpenSearch cluster asynchronously.

      The result message is sent to ConfigController.Ui.onOpenSearchStatus(java.lang.String) on the EDT. Uses current RuntimeConfig for credentials and insecure-SSL (caller should call updateRuntimeConfig / buildCurrentState before this so the checkbox and current session auth apply).

      Parameters:
      url - base URL of the OpenSearch cluster