Class IssueReport

    • Field Detail

      • title

        protected java.lang.String title
      • body

        protected java.lang.String body
      • tooLong

        protected boolean tooLong
    • Constructor Detail

      • IssueReport

        IssueReport​(java.lang.String title,
                    java.lang.String body)
    • Method Detail

      • submit

        @Nonnull
        public java.net.URI submit​(GitHubRepository repository)
                            throws java.net.URISyntaxException,
                                   java.io.IOException,
                                   IssueReport414Exception
        Submit a report.
        Parameters:
        repository - the GitHub repository to submit to
        Returns:
        the URI to submit the report to
        Throws:
        java.net.URISyntaxException - if unable to create URI for issue
        java.io.IOException - if unable to connect to GitHub
        IssueReport414Exception - if report is too long
      • prepare

        protected abstract void prepare()
        Prepare a report.
      • getSimpleContext

        @Nonnull
        public java.lang.String getSimpleContext()
        Get the simple context (JMRI version, Java version, and OS)
        Returns:
        the context