public class MailHandler extends java.util.logging.Handler implements AlarmListener
| Constructor and Description |
|---|
MailHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(java.lang.String to)
Adds a 'to'
|
void |
close() |
void |
flush()
Flushes the buffer.
|
void |
handleAlarm(Alarm alarm)
Handles a callback from an alarm.
|
void |
init()
Initialize the handler
|
void |
publish(java.util.logging.LogRecord record)
Publishes the record.
|
void |
setDelayTime(Period period)
Sets the delay time, i.e.
|
void |
setMailIntervalMin(Period period)
Sets the delay time, i.e.
|
void |
setMailSession(Session session)
Sets the mail session
|
void |
setProperties(java.util.Properties props)
Sets properties
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property
|
java.lang.String |
toString() |
public void setDelayTime(Period period)
public void setMailIntervalMin(Period period)
public void setMailSession(Session session)
public void setProperty(java.lang.String key,
java.lang.String value)
public void setProperties(java.util.Properties props)
public void addTo(java.lang.String to)
throws AddressException
AddressException@PostConstruct public void init() throws ConfigException
ConfigExceptionpublic void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.Handlerpublic void flush()
flush in class java.util.logging.Handlerpublic void handleAlarm(Alarm alarm)
AlarmListenerhandleAlarm in interface AlarmListener@PreDestroy public void close()
close in class java.util.logging.Handlerpublic java.lang.String toString()
toString in class java.lang.Object