Class RemoteListingDiscoveryService

java.lang.Object
ecmwf.common.parser.discovery.RemoteListingDiscoveryService

public class RemoteListingDiscoveryService extends Object
Discovery service responsible for auto-detecting remote listing formats, inferring mappings, and producing preview results for OpenECPDS UI.

This service is the entry point for "auto-detection + preview" workflow:

  1. Analyze sample content
  2. Detect format (CSV / JSON / STAC / XML / FTP / S3)
  3. Infer field mapping suggestions
  4. Build ParserConfig
  5. Execute parser via RemoteListingEngine
  6. Return preview result for UI validation
  • Constructor Details

    • RemoteListingDiscoveryService

      public RemoteListingDiscoveryService(RemoteListingEngine engine)
  • Method Details

    • discover

      public ParserPreview discover(String sampleContent) throws Exception
      Main discovery entry point.
      Parameters:
      sampleContent - partial content (first KB of remote listing)
      Throws:
      Exception