|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.shaker.dwu.BugMail
The basic abstract mail representation of a BugProfile. A BugMail is the formatted representation of a BugProfile; every BugProfile contains it.
Field Summary | |
protected static java.lang.String |
DATE
Date key |
protected static java.lang.String |
ERROR_CLASS
Error class key |
protected static java.lang.String |
MAIL_TO
Recipient key |
protected static java.lang.String |
MESSAGE
Message key |
protected static java.lang.String |
NEW_LINE
OS depended line break |
protected static java.lang.String |
P_NAME
Product name key |
protected static java.lang.String |
P_VERSION
(Product) Version key |
protected static java.lang.String |
SEND_FORMAT
The mail format |
protected static java.lang.String |
STACK_TRACE
Stacktrace key |
protected static java.lang.String |
USER_COMMENT
User comment key |
Constructor Summary | |
BugMail()
|
Method Summary | |
protected abstract java.lang.String |
getMailBody()
Exports the related BugProfile properties into a format dependend mail body. |
protected abstract java.lang.String |
getMimeType()
Returns the MIME type of the mail body delivered by generateContent(). |
protected abstract java.lang.String |
getSubjectLine()
Returns a format dependend subject line for the mail message. |
protected abstract boolean |
isSatisfied()
Returns true, if the underlying format has enough informations for a valid transmission. |
protected static boolean |
isStandardKey(java.lang.String key)
Returns true, if the given key is one of the known basic properties. |
protected static java.lang.String |
replace_impl(java.lang.String string,
java.lang.String subString,
java.lang.String newString)
Replaces all occurences of subString with newString in string. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected static final java.lang.String STACK_TRACE
protected static final java.lang.String ERROR_CLASS
protected static final java.lang.String USER_COMMENT
protected static final java.lang.String MAIL_TO
protected static final java.lang.String MESSAGE
protected static final java.lang.String DATE
protected static final java.lang.String P_VERSION
protected static final java.lang.String P_NAME
protected static final java.lang.String SEND_FORMAT
protected static final java.lang.String NEW_LINE
Constructor Detail |
public BugMail()
Method Detail |
protected abstract boolean isSatisfied()
protected abstract java.lang.String getMimeType()
the content generation method
protected abstract java.lang.String getSubjectLine()
protected abstract java.lang.String getMailBody()
protected static final boolean isStandardKey(java.lang.String key)
key
- a property keyprotected static java.lang.String replace_impl(java.lang.String string, java.lang.String subString, java.lang.String newString)
string
- the current stringsubString
- the replaced stringnewString
- the new token
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |