java.lang.Object | +--java.util.EventObject | +--javax.mail.event.MailEvent | +--javax.mail.event.StoreEvent
This class models notifications from the Store connection. These notifications can be ALERTS or NOTICES. ALERTS must be presented to the user in a fashion that calls the user's attention to the message.
ALERT Indicates that this message is an ALERT. | |
message The message text to be presented to the user. | |
NOTICE Indicates that this message is a NOTICE. | |
type The event type. |
Fields inherited from class java.util.EventObject |
source |
StoreEvent(Store store, int type, java.lang.String message) Constructor. |
dispatch(java.lang.Object listener) Invokes the appropriate StoreListener method. | |
getMessage() Get the message from the Store. | |
getMessageType() Return the type of this event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
public static final intALERT
public static final intNOTICE
protected inttype
protected java.lang.Stringmessage
publicStoreEvent(Store store, int type, java.lang.String message)
source
- The source Storepublic intgetMessageType()
ALERT
,NOTICE
public java.lang.StringgetMessage()
public voiddispatch(java.lang.Object listener)
dispatch
in classMailEvent