Package slash.navigation.feedback.domain
Class CrashReportSender
java.lang.Object
slash.navigation.feedback.domain.CrashReportSender
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
CrashReportSender
public CrashReportSender()
-
-
Method Details
-
send
Signs and POSTs the given JSON payload toapiUrl. 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.
-