Class ExportDocumentIdentity

java.lang.Object
ai.attackframework.tools.burp.utils.export.ExportDocumentIdentity

public final class ExportDocumentIdentity extends Object
Builds stable exporter IDs shared across sinks.

The ID is derived from the filtered document content plus the target index name. This makes the same emitted event reuse one ID across OpenSearch, bulk NDJSON, and JSONL while still allowing later events to produce distinct IDs when their document content differs.

  • Method Details

    • prepare

      public static PreparedExportDocument prepare(String indexName, String indexKey, Map<String,Object> document)
      Filters, stamps, and returns a sink-ready export document for the provided logical key.
    • exportIdOf

      public static String exportIdOf(Map<String,Object> document)
      Returns the export ID stored in document_meta.export_id, or blank when absent.