public class BugReportSender extends java.lang.Thread
Currently, we try to open a browser window for the user that displays the bug report.
Modifier and Type | Class and Description |
---|---|
private static class |
BugReportSender.BugReportSenderException |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorMessage |
private java.lang.String |
statusText |
Modifier | Constructor and Description |
---|---|
protected |
BugReportSender(java.lang.String statusText)
Creates a new sender.
|
Modifier and Type | Method and Description |
---|---|
private void |
failed(java.lang.String string) |
java.lang.String |
getErrorMessage()
Returns the error message that could have occured during bug sending.
|
private static java.lang.String |
getJOSMTicketURL() |
private java.lang.String |
pasteDebugText()
Sends the debug text to the server.
|
static BugReportSender |
reportBug(java.lang.String statusText)
Opens the bug report window on the JOSM server.
|
private static java.lang.String |
retrieveDebugToken(org.w3c.dom.Document document) |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private final java.lang.String statusText
private java.lang.String errorMessage
protected BugReportSender(java.lang.String statusText)
statusText
- The status text to send.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private java.lang.String pasteDebugText() throws BugReportSender.BugReportSenderException
BugReportSender.BugReportSenderException
- if sending the report failed.private static java.lang.String getJOSMTicketURL()
private static java.lang.String retrieveDebugToken(org.w3c.dom.Document document) throws javax.xml.xpath.XPathExpressionException, BugReportSender.BugReportSenderException
javax.xml.xpath.XPathExpressionException
BugReportSender.BugReportSenderException
private void failed(java.lang.String string)
public final java.lang.String getErrorMessage()
null
if successfulpublic static BugReportSender reportBug(java.lang.String statusText)
statusText
- The status text to send along to the server.