javax.mail.event
public class: StoreEvent [javadoc |
source]
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.
Field Summary |
---|
public static final int | ALERT | Indicates that this message is an ALERT. |
public static final int | NOTICE | Indicates that this message is a NOTICE. |
protected int | type | The event type. |
protected String | message | The message text to be presented to the user. |
Constructor: |
public StoreEvent(Store store,
int type,
String message) {
super(store);
this.type = type;
this.message = message;
}
Parameters:
store - The source Store
|
Methods from javax.mail.event.MailEvent: |
---|
dispatch |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.mail.event.StoreEvent Detail: |
public void dispatch(Object listener) {
((StoreListener)listener).notification(this);
}
Invokes the appropriate StoreListener method. |
public String getMessage() {
return message;
}
Get the message from the Store. |
public int getMessageType() {
return type;
}
Return the type of this event. |