|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--java.util.Properties | +--org.shaker.dwu.BugProfile
Objects of this class describe occured Bugs by collecting specific informations like the machine/program state, the exception stuff and further more. The profile can be extended with formerly collected infos and gets finally exported into a mail. Supported formats:
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
private BugMail |
bugMail
|
protected static java.lang.String |
DATE
Date key |
static java.lang.String |
ERROR_CLASS
Error class key |
static java.lang.String |
MAIL_TO
Recipient key |
static java.lang.String |
MESSAGE
Message key |
static java.lang.String |
PRODUCT_NAME
Product name key |
static java.lang.String |
PRODUCT_VERSION
(Product) Version key |
private java.io.File |
profileFile
The physical file representation of this BugProfile |
protected static java.util.ArrayList |
propertyFilter
Positive property filter list |
static java.lang.String |
SEND_FORMAT
The mail format |
private static Settings |
SETTINGS
A reference to the settings |
protected static java.lang.String |
STACK_TRACE
Stacktrace key |
private java.lang.String |
stackHash
String representation of the hashvalue |
static java.lang.String |
USER_COMMENT
User comment key |
Fields inherited from class java.util.Properties |
defaults, hexDigit, keyValueSeparators, serialVersionUID, specialSaveChars, strictKeyValueSeparators, whiteSpaceChars |
Fields inherited from class java.util.Hashtable |
count, emptyEnumerator, emptyIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, table, threshold, values, VALUES |
Constructor Summary | |
(package private) |
BugProfile(java.lang.Object message,
int hashSig,
java.lang.String errorclass,
java.lang.String mailTo)
Creates a BugProfile based on a error string, using a manually created hashcode signature. |
(package private) |
BugProfile(java.lang.Object message,
java.lang.String stackTrace,
java.lang.String errorclass,
java.lang.String mailTo)
Creates a BugProfile that is based on a thrown exception. |
(package private) |
BugProfile(java.lang.String fileName)
Creates a BugProfile by passing a BugProfile file of the queue. |
Method Summary | |
private BugMail |
getBugMail(java.lang.String format)
Sets the BugMail based on the format argument. |
(package private) java.lang.String |
getHashSig()
This Method returns its unique StackTrace HashCode |
(package private) java.lang.String |
getMailBody()
Returns a mail body formatted on the given custom or default format. |
(package private) java.lang.String |
getMimeType()
Returns the MIME type of the BugMail. |
private static java.util.ArrayList |
getPropertyFilter()
Returns the default system properties filter. |
(package private) javax.mail.internet.InternetAddress |
getRecipient()
Returns a InternetAddress object of the recipient |
(package private) java.lang.String |
getSubjectLine()
Creates a unique subjectline for mailreports |
private void |
importOldProfile()
This Method imports old BugProfiles and keeps user`s comments in mind. |
(package private) void |
killPhysically()
Deletes the locally stored BugProfile file. |
private void |
saveProfileToDisk()
Saves the profile to disk. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property (each piece of information regarding the error is a property). |
private boolean |
validateState()
Validates the worth of this Profile. |
Methods inherited from class java.util.Properties |
|
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, getEnumeration, getIterator, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
protected static final java.lang.String STACK_TRACE
public static final java.lang.String ERROR_CLASS
public static final java.lang.String USER_COMMENT
public static final java.lang.String MAIL_TO
public static final java.lang.String MESSAGE
protected static final java.lang.String DATE
public static final java.lang.String PRODUCT_VERSION
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String SEND_FORMAT
protected static final java.util.ArrayList propertyFilter
private static final Settings SETTINGS
private final java.io.File profileFile
private final java.lang.String stackHash
private BugMail bugMail
Constructor Detail |
BugProfile(java.lang.Object message, java.lang.String stackTrace, java.lang.String errorclass, java.lang.String mailTo) throws java.lang.Exception
message
- the exception message (!null)stackTrace
- the StackTrace (!null and not empty)errorclass
- the error class identifiermailTo
- the recipientjava.lang.Exception
- an exception is thrown, if this profile (and its sig
is known as already submitted. This prevents further
submissions.BugProfile(java.lang.Object message, int hashSig, java.lang.String errorclass, java.lang.String mailTo) throws java.lang.Exception
message
- the exception message (!null)hashSig
- the hashcode signatureerrorclass
- the error class identifiermailTo
- the recipientjava.lang.Exception
- an exception is thrown, if this profile (and its sig
is known as already submitted. This prevents further
submissions.BugProfile(java.lang.String fileName) throws java.io.IOException
fileName
- the filenamejava.io.IOException
- in case of unexpected filecontentMethod Detail |
private boolean validateState()
private void importOldProfile() throws java.io.IOException
java.io.IOException
- when the import can`t be performedprivate void saveProfileToDisk() throws java.io.IOException
java.io.IOException
- thrown in case of errorvoid killPhysically()
java.lang.String getHashSig()
public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
setProperty
in class java.util.Properties
key
- an int key representation of the current valuevalue
- a string representation of the valuejavax.mail.internet.InternetAddress getRecipient()
java.lang.String getSubjectLine()
final java.lang.String getMailBody()
what format satisfaction means
final java.lang.String getMimeType()
private final BugMail getBugMail(java.lang.String format)
format
- the format (html, bugzilla or text expected); text used
on faultprivate static final java.util.ArrayList getPropertyFilter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |