Package com.bugsnag
Class Configuration
- java.lang.Object
-
- com.bugsnag.Configuration
-
public class Configuration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
apiKey
java.lang.String
appType
java.lang.String
appVersion
Delivery
delivery
java.lang.String[]
filters
java.lang.String[]
ignoreClasses
java.lang.String[]
notifyReleaseStages
java.lang.String[]
projectPackages
java.lang.String
releaseStage
boolean
sendThreads
Delivery
sessionDelivery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAutoCaptureSessions(boolean autoCaptureSessions)
void
setEndpoints(java.lang.String notify, java.lang.String sessions)
Set the endpoints to send data to.void
setSendUncaughtExceptions(boolean sendUncaughtExceptions)
boolean
shouldAutoCaptureSessions()
boolean
shouldSendUncaughtExceptions()
-
-
-
Field Detail
-
apiKey
public java.lang.String apiKey
-
appType
public java.lang.String appType
-
appVersion
public java.lang.String appVersion
-
delivery
public Delivery delivery
-
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 customDelivery
, this method should be called after the custom implementation has been set.- Parameters:
notify
- the notify endpointsessions
- the sessions endpoint- Throws:
java.lang.IllegalArgumentException
- if the notify endpoint is empty or null
-
-