|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
com.caucho.log.MailHandler
public class MailHandler
Sends formatted messages to mail
Constructor Summary | |
---|---|
MailHandler()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MailHandler()
Method Detail |
---|
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
ConfigException
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
public void flush()
flush
in class java.util.logging.Handler
public void handleAlarm(Alarm alarm)
AlarmListener
handleAlarm
in interface AlarmListener
@PreDestroy public void close()
close
in class java.util.logging.Handler
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |