public class Configuration
extends java.lang.Object
| Constructor and Description |
|---|
Configuration(java.lang.String apiKey)
Construct a new Bugsnag configuration object
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeNotify(BeforeNotify beforeNotify)
Adds a new before notify task
|
java.lang.String |
getApiKey()
Gets the API key to send reports to
|
java.lang.String |
getAppVersion()
Gets the application version sent to Bugsnag.
|
protected java.util.Collection<BeforeNotify> |
getBeforeNotifyTasks()
Gets any before notify tasks to run
|
java.lang.String |
getBuildUUID()
Get the buildUUID.
|
java.lang.String |
getContext()
Gets the context to be sent to Bugsnag.
|
boolean |
getEnableExceptionHandler()
Get whether or not Bugsnag should automatically handle uncaught exceptions
|
java.lang.String |
getEndpoint()
Get the endpoint to send data
|
java.lang.String[] |
getFilters()
Get which keys should be filtered when sending metaData to Bugsnag
|
java.lang.String[] |
getIgnoreClasses()
Get which exception classes should be ignored (not sent) by Bugsnag.
|
protected MetaData |
getMetaData() |
java.lang.String[] |
getNotifyReleaseStages()
Get for which releaseStages errors should be sent to Bugsnag.
|
boolean |
getPersistUserBetweenSessions()
Get whether or not Bugsnag should persist user information between application settings
|
java.lang.String[] |
getProjectPackages()
Get which packages should be considered part of your application.
|
java.lang.String |
getReleaseStage()
Get the current "release stage" of your application.
|
boolean |
getSendThreads()
Get whether to send thread-state with report.
|
protected boolean |
inProject(java.lang.String className)
Checks if the given class name should be marked as in the project or not
|
void |
setAppVersion(java.lang.String appVersion)
Set the application version sent to Bugsnag.
|
void |
setBuildUUID(java.lang.String buildUUID)
Set the buildUUID to your own value.
|
void |
setContext(java.lang.String context)
Set the context sent to Bugsnag.
|
void |
setEnableExceptionHandler(boolean enableExceptionHandler)
Set whether or not Bugsnag should automatically handle uncaught exceptions
|
void |
setEndpoint(java.lang.String endpoint)
Set the endpoint to send data to.
|
void |
setFilters(java.lang.String[] filters)
Set which keys should be filtered when sending metaData to Bugsnag.
|
void |
setIgnoreClasses(java.lang.String[] ignoreClasses)
Set which exception classes should be ignored (not sent) by Bugsnag.
|
protected void |
setMetaData(MetaData metaData)
Sets any meta data associated with the error
|
void |
setNotifyReleaseStages(java.lang.String[] notifyReleaseStages)
Set for which releaseStages errors should be sent to Bugsnag.
|
void |
setPersistUserBetweenSessions(boolean persistUserBetweenSessions)
Set whether or not Bugsnag should persist user information between application settings
if set then any user information set will be re-used until
|
void |
setProjectPackages(java.lang.String[] projectPackages)
Set which packages should be considered part of your application.
|
void |
setReleaseStage(java.lang.String releaseStage)
Set the current "release stage" of your application.
|
void |
setSendThreads(boolean sendThreads)
Set whether to send thread-state with report.
|
protected boolean |
shouldIgnoreClass(java.lang.String className)
Checks if the given exception class should be ignored or not
|
protected boolean |
shouldNotifyForReleaseStage(java.lang.String releaseStage)
Checks if the given release stage should be notified or not
|
public Configuration(java.lang.String apiKey)
apiKey - The API key to send reports topublic java.lang.String getApiKey()
public java.lang.String getAppVersion()
public void setAppVersion(java.lang.String appVersion)
appVersion - the app version to sendpublic java.lang.String getContext()
public void setContext(java.lang.String context)
context - set what was happening at the time of a crashpublic java.lang.String getEndpoint()
public void setEndpoint(java.lang.String endpoint)
endpoint - the custom endpoint to send report topublic java.lang.String getBuildUUID()
public void setBuildUUID(java.lang.String buildUUID)
buildUUID - the buildUUID.public java.lang.String[] getFilters()
public void setFilters(java.lang.String[] filters)
filters - a list of keys to filter from metaDatapublic java.lang.String[] getIgnoreClasses()
public void setIgnoreClasses(java.lang.String[] ignoreClasses)
ignoreClasses - a list of exception classes to ignorepublic java.lang.String[] getNotifyReleaseStages()
public void setNotifyReleaseStages(java.lang.String[] notifyReleaseStages)
notifyReleaseStages - a list of releaseStages to notify forsetReleaseStage(java.lang.String)public java.lang.String[] getProjectPackages()
public void setProjectPackages(java.lang.String[] projectPackages)
projectPackages - a list of package namespublic java.lang.String getReleaseStage()
public void setReleaseStage(java.lang.String releaseStage)
releaseStage - the release stage of the appsetNotifyReleaseStages(java.lang.String[])public boolean getSendThreads()
public void setSendThreads(boolean sendThreads)
sendThreads - should we send thread-state with report?public boolean getEnableExceptionHandler()
public void setEnableExceptionHandler(boolean enableExceptionHandler)
enableExceptionHandler - should Bugsnag automatically handle uncaught exceptionsprotected MetaData getMetaData()
protected void setMetaData(MetaData metaData)
metaData - meta dataprotected java.util.Collection<BeforeNotify> getBeforeNotifyTasks()
public boolean getPersistUserBetweenSessions()
public void setPersistUserBetweenSessions(boolean persistUserBetweenSessions)
persistUserBetweenSessions - whether or not Bugsnag should persist user informationis calledprotected boolean shouldNotifyForReleaseStage(java.lang.String releaseStage)
releaseStage - the release stage to checkprotected boolean shouldIgnoreClass(java.lang.String className)
className - the exception class to checkprotected void beforeNotify(BeforeNotify beforeNotify)
beforeNotify - the new before notify taskprotected boolean inProject(java.lang.String className)
className - the class to check