allensoft.bug
Class EMailBugSubmitter
java.lang.Object
|
+--allensoft.bug.WizardBasedBugSubmitter
|
+--allensoft.bug.EMailBugSubmitter
- All Implemented Interfaces:
- BugSubmitter
- public class EMailBugSubmitter
- extends WizardBasedBugSubmitter
Submits a bug report by email.
Method Summary |
protected allensoft.bug.Session |
createSession()
Creates the session used for submitting the bug report. |
protected Wizard |
createWizard(BugReport bugReport)
Creates the wizard that should be used to submit the bug report. |
protected java.lang.String |
getMessageBody(BugReport bugReport)
Generates the body of the message from the bug report. |
protected allensoft.bug.Multipart |
getMultipart(BugReport bugReport)
Creates a Multipart for the message. |
protected java.lang.String |
getSubject(BugReport bugReport)
Generates the subject of the message from the bug report. |
boolean |
submitBugReport(BugReport bugReport)
Submits the supplied bug report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMailBugSubmitter
public EMailBugSubmitter(allensoft.bug.Session session,
allensoft.bug.Address[] recipients)
EMailBugSubmitter
public EMailBugSubmitter(allensoft.bug.Session session,
allensoft.bug.Address recipient)
EMailBugSubmitter
public EMailBugSubmitter(allensoft.bug.Session session,
java.lang.String sRecipient)
throws allensoft.bug.AddressException
EMailBugSubmitter
public EMailBugSubmitter(allensoft.bug.Address[] recipients)
EMailBugSubmitter
public EMailBugSubmitter(allensoft.bug.Address recipient)
EMailBugSubmitter
public EMailBugSubmitter(java.lang.String sRecipient)
throws allensoft.bug.AddressException
submitBugReport
public boolean submitBugReport(BugReport bugReport)
- Description copied from class:
WizardBasedBugSubmitter
- Submits the supplied bug report. Base classes should typically override
the sendBugReport method instead to gain the added functionality of
obtaining user details.
- Overrides:
submitBugReport
in class WizardBasedBugSubmitter
- Following copied from interface:
allensoft.bug.BugSubmitter
- Returns:
- true if the bug report was successfully submitted, otherwise false.
createSession
protected allensoft.bug.Session createSession()
- Creates the session used for submitting the bug report. This is only
called if a session was not supllied at construction time.
- Returns:
- the session to use for submitting the bug report or null if there was a problem.
createWizard
protected Wizard createWizard(BugReport bugReport)
- Description copied from class:
WizardBasedBugSubmitter
- Creates the wizard that should be used to submit the bug report.
- Overrides:
createWizard
in class WizardBasedBugSubmitter
getSubject
protected java.lang.String getSubject(BugReport bugReport)
- Generates the subject of the message from the bug report.
getMultipart
protected allensoft.bug.Multipart getMultipart(BugReport bugReport)
throws allensoft.bug.MessagingException
- Creates a Multipart for the message. By default this just creates
one part with the text returned by
getMessageBody
.
getMessageBody
protected java.lang.String getMessageBody(BugReport bugReport)
- Generates the body of the message from the bug report. By default this just
returns
bugReport.toString ()
.