Package apps.util.issuereporter
Class IssueReport
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
apps.util.issuereporter.IssueReport
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider
- Direct Known Subclasses:
BugReport,EnhancementRequest
@API(status=INTERNAL,
consumers="apps.util.issuereporter.*")
public abstract class IssueReport
extends Bean
Common code for the various types of problem reports.
-
Field Summary
FieldsFields inherited from class jmri.beans.Bean
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Get the simple context (JMRI version, Java version, and OS)protected abstract voidprepare()Prepare a report.submit(GitHubRepository repository) Submit a report.Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Field Details
-
title
-
body
-
tooLong
-
-
Constructor Details
-
IssueReport
IssueReport(String title, String body)
-
-
Method Details
-
submit
@Nonnull public URI submit(GitHubRepository repository) throws URISyntaxException, IOException, IssueReport414Exception Submit a report.- Parameters:
repository- the GitHub repository to submit to- Returns:
- the URI to submit the report to
- Throws:
URISyntaxException- if unable to create URI for issueIOException- if unable to connect to GitHubIssueReport414Exception- if report is too long
-
prepare
Prepare a report. -
getAttachments
-
getSimpleContext
Get the simple context (JMRI version, Java version, and OS)- Returns:
- the context
-
getBody
-