javax.mail.event

Class StoreEvent

public class StoreEvent extends MailEvent

Event representing motifications from the Store connection.
Field Summary
static intALERT
Indicates that this message is an alert.
protected Stringmessage
The text to be presented to the user.
static intNOTICE
Indicates that this message is a notice.
protected inttype
The message type.
Constructor Summary
StoreEvent(Store store, int type, String message)
Construct a new event.
Method Summary
voiddispatch(Object listener)
StringgetMessage()
Return the text to be displayed to the user.
intgetMessageType()
Return the message type.

Field Detail

ALERT

public static final int ALERT
Indicates that this message is an alert.

message

protected String message
The text to be presented to the user.

NOTICE

public static final int NOTICE
Indicates that this message is a notice.

type

protected int type
The message type.

Constructor Detail

StoreEvent

public StoreEvent(Store store, int type, String message)
Construct a new event.

Parameters: store the Store that initiated the notification type the message type message the text to be presented to the user

Method Detail

dispatch

public void dispatch(Object listener)

getMessage

public String getMessage()
Return the text to be displayed to the user.

Returns: the text to be displayed to the user

getMessageType

public int getMessageType()
Return the message type.

Returns: the message type