javax.mail.event
Class StoreEvent
Event representing motifications from the Store connection.
static int | ALERT- Indicates that this message is an alert.
|
static int | NOTICE- Indicates that this message is a notice.
|
protected String | message- The text to be presented to the user.
|
protected int | type- The message type.
|
ALERT
public static final int ALERT
Indicates that this message is an alert.
NOTICE
public static final int NOTICE
Indicates that this message is a notice.
message
protected String message
The text to be presented to the user.
type
protected int type
The message type.
StoreEvent
public StoreEvent(Store store,
int type,
String message) Construct a new event.
store - the Store that initiated the notificationtype - the message typemessage - the text to be presented to the user
getMessage
public String getMessage()
Return the text to be displayed to the user.
- the text to be displayed to the user
getMessageType
public int getMessageType()
Return the message type.