javax.mail.event
Class 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.
static int | ALERT- Indicates that this message is an ALERT.
|
static int | NOTICE- Indicates that this message is a NOTICE.
|
protected String | message- The message text to be presented to the user.
|
protected int | type- The event type.
|
void | dispatch(Object listener)- Invokes the appropriate StoreListener method.
|
String | getMessage()- Get the message from the Store.
|
int | getMessageType()- Return the type of this event.
|
ALERT
public static final int ALERT
Indicates that this message is an ALERT.
- 1
NOTICE
public static final int NOTICE
Indicates that this message is a NOTICE.
- 2
message
protected String message
The message text to be presented to the user.
type
protected int type
The event type.
StoreEvent
public StoreEvent(Store source,
int type,
String message) Constructor.
source - The source Store
dispatch
public void dispatch(Object listener)
Invokes the appropriate StoreListener method.
- dispatch in interface MailEvent
getMessage
public String getMessage()
Get the message from the Store.
getMessageType
public int getMessageType()
Return the type of this event.
ALERT, NOTICE