de.innovationgate.wgpublisher
public class WGAMailNotification extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HEADERFIELD_TYPE |
static String |
MIME_TYPE_HTML |
static String |
MIME_TYPE_PLAINTEXT |
static String |
TYPE_CUSTOM |
static String |
TYPE_DATABASE_INITIALISATION_ERRORS |
static String |
TYPE_LICENSE_VALIDITY |
static String |
TYPE_LOGIN_BLOCKED |
static String |
TYPE_MEMORY_FATAL |
static String |
TYPE_MEMORY_THRESHOLD |
Constructor and Description |
---|
WGAMailNotification(String type)
Constructor, taking the notification type
|
Modifier and Type | Method and Description |
---|---|
void |
append(String aString)
Appends a string to the mail body
|
void |
append(Throwable throwable)
Appends information about a throwable to the mail body
|
int |
getLogfileLines()
Returns the number of lines from the end of the application log to append to this mail
|
StringBuffer |
getMessage()
Returns the mail body message
|
String |
getSubject()
Returns the subject of the mail
|
String |
getType()
Returns the notification type
|
boolean |
isAttachLogfile()
Returns if a part of the application log is to be attached to this mail
|
void |
setAttachLogfile(boolean attachLogfile)
Returns if a part of the application log is to be attached to this mail
|
void |
setLogfileLines(int logfileLines)
Sets the number of lines from the end of the application log to append to this mail
|
void |
setMessage(StringBuffer message)
Sets the mail body message
|
void |
setSubject(String subject)
Sets the subject of the mail
|
public static final String HEADERFIELD_TYPE
public static final String TYPE_LOGIN_BLOCKED
public static final String TYPE_DATABASE_INITIALISATION_ERRORS
public static final String TYPE_LICENSE_VALIDITY
public static final String TYPE_MEMORY_THRESHOLD
public static final String TYPE_MEMORY_FATAL
public static final String TYPE_CUSTOM
public static final String MIME_TYPE_HTML
public static final String MIME_TYPE_PLAINTEXT
public WGAMailNotification(String type)
type
- public String getSubject()
public void setSubject(String subject)
public StringBuffer getMessage()
public void setMessage(StringBuffer message)
public String getType()
public boolean isAttachLogfile()
public void setAttachLogfile(boolean attachLogfile)
public int getLogfileLines()
public void setLogfileLines(int logfileLines)
public void append(String aString)
aString
- public void append(Throwable throwable)
throwable
-