public class WGAMailNotification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADERFIELD_TYPE |
static java.lang.String |
MIME_TYPE_HTML |
static java.lang.String |
MIME_TYPE_PLAINTEXT |
static java.lang.String |
TYPE_CUSTOM |
static java.lang.String |
TYPE_DATABASE_INITIALISATION_ERRORS |
static java.lang.String |
TYPE_LICENSE_VALIDITY |
static java.lang.String |
TYPE_LOGIN_BLOCKED |
static java.lang.String |
TYPE_MEMORY_FATAL |
static java.lang.String |
TYPE_MEMORY_THRESHOLD |
Constructor and Description |
---|
WGAMailNotification(java.lang.String type)
Constructor, taking the notification type
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String aString)
Appends a string to the mail body
|
void |
append(java.lang.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
|
java.lang.StringBuffer |
getMessage()
Returns the mail body message
|
java.lang.String |
getSubject()
Returns the subject of the mail
|
java.lang.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(java.lang.StringBuffer message)
Sets the mail body message
|
void |
setSubject(java.lang.String subject)
Sets the subject of the mail
|
public static final java.lang.String HEADERFIELD_TYPE
public static final java.lang.String TYPE_LOGIN_BLOCKED
public static final java.lang.String TYPE_DATABASE_INITIALISATION_ERRORS
public static final java.lang.String TYPE_LICENSE_VALIDITY
public static final java.lang.String TYPE_MEMORY_THRESHOLD
public static final java.lang.String TYPE_MEMORY_FATAL
public static final java.lang.String TYPE_CUSTOM
public static final java.lang.String MIME_TYPE_HTML
public static final java.lang.String MIME_TYPE_PLAINTEXT
public WGAMailNotification(java.lang.String type)
type
- public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
public java.lang.StringBuffer getMessage()
public void setMessage(java.lang.StringBuffer message)
public java.lang.String getType()
public boolean isAttachLogfile()
public void setAttachLogfile(boolean attachLogfile)
public int getLogfileLines()
public void setLogfileLines(int logfileLines)
public void append(java.lang.String aString)
aString
- public void append(java.lang.Throwable throwable)
throwable
-