Class CrashReportSender

java.lang.Object
slash.navigation.feedback.domain.CrashReportSender

public class CrashReportSender extends Object
Sends an anonymous, opt-in crash telemetry report (a DiagnosticReport JSON payload) to the /v1/crash-report/ endpoint. The request carries no credentials; authenticity is proven with an X-RouteConverter-Signature header holding the lowercase hex HMAC-SHA256 over the exact raw request body bytes, keyed with a shared secret.

The sender is fail-silent by contract: it never throws, never blocks on the EDT and never surfaces a dialog. A caller runs it on a background thread. Oversized payloads (the server rejects anything over 64 KB) are skipped client-side.

Author:
Christian Pesch
  • Constructor Details

    • CrashReportSender

      public CrashReportSender()
  • Method Details

    • send

      public boolean send(String apiUrl, String json)
      Signs and POSTs the given JSON payload to apiUrl. Returns true only on a 2xx response (the report was accepted and may be removed from the spool); returns false on an oversized payload, any non-2xx response or any transport error, and never throws.