com.bugsnag.Notification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bugsnag Show documentation
Show all versions of bugsnag Show documentation
Official Bugsnag notifier for Java applications
package com.bugsnag;
import com.bugsnag.serialization.Expose;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Notification {
private Configuration config;
private Report report;
Notification(Configuration config, Report report) {
this.config = config;
this.report = report;
}
@Expose
public String getApiKey() {
String reportApiKey = report.getApiKey();
return reportApiKey != null ? reportApiKey : config.apiKey;
}
@Expose
public Notifier getNotifier() {
return new Notifier();
}
@Expose
public List getEvents() {
return Collections.singletonList(report);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy