Package javax.mail.event
Class StoreEvent
java.lang.Object
java.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.StoreEvent
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates that this message is an ALERT.protected String
The message text to be presented to the user.static final int
Indicates that this message is a NOTICE.protected int
The event type.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invokes the appropriate StoreListener method.Get the message from the Store.int
Return the type of this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ALERT
public static final int ALERTIndicates that this message is an ALERT.- See Also:
-
NOTICE
public static final int NOTICEIndicates that this message is a NOTICE.- See Also:
-
type
protected int typeThe event type. -
message
The message text to be presented to the user.
-
-
Constructor Details
-
StoreEvent
Constructor.- Parameters:
store
- The source Store
-
-
Method Details