Package com.bugsnag

Class Configuration


  • public class Configuration
    extends java.lang.Object
    • Field Detail

      • apiKey

        public java.lang.String apiKey
      • appType

        public java.lang.String appType
      • appVersion

        public java.lang.String appVersion
      • sessionDelivery

        public Delivery sessionDelivery
      • filters

        public java.lang.String[] filters
      • ignoreClasses

        public java.lang.String[] ignoreClasses
      • notifyReleaseStages

        public java.lang.String[] notifyReleaseStages
      • projectPackages

        public java.lang.String[] projectPackages
      • releaseStage

        public java.lang.String releaseStage
      • sendThreads

        public boolean sendThreads
    • Method Detail

      • setAutoCaptureSessions

        public void setAutoCaptureSessions​(boolean autoCaptureSessions)
      • shouldAutoCaptureSessions

        public boolean shouldAutoCaptureSessions()
      • setSendUncaughtExceptions

        public void setSendUncaughtExceptions​(boolean sendUncaughtExceptions)
      • shouldSendUncaughtExceptions

        public boolean shouldSendUncaughtExceptions()
      • setEndpoints

        public void setEndpoints​(java.lang.String notify,
                                 java.lang.String sessions)
                          throws java.lang.IllegalArgumentException
        Set the endpoints to send data to. By default we'll send error reports to https://notify.bugsnag.com, and sessions to https://sessions.bugsnag.com, but you can override this if you are using Bugsnag Enterprise to point to your own Bugsnag endpoint. Please note that it is recommended that you set both endpoints. If the notify endpoint is missing, an exception will be thrown. If the session endpoint is missing, a warning will be logged and sessions will not be sent automatically. Note that if you are setting a custom Delivery, this method should be called after the custom implementation has been set.
        Parameters:
        notify - the notify endpoint
        sessions - the sessions endpoint
        Throws:
        java.lang.IllegalArgumentException - if the notify endpoint is empty or null