javax.mail.event

Class StoreEvent

public class StoreEvent extends MailEvent

A store notification event.

Version: 1.3

Author: Chris Burdess

Field Summary
static intALERT
Indicates that this message is an ALERT.
protected Stringmessage
The message text to be presented to the user.
static intNOTICE
Indicates that this message is a NOTICE.
protected inttype
The event type.
Constructor Summary
StoreEvent(Store source, int type, String message)
Constructor.
Method Summary
voiddispatch(Object listener)
Invokes the appropriate listener method.
StringgetMessage()
Returns the notification message.
intgetMessageType()
Returns the type of this event.

Field Detail

ALERT

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

message

protected String message
The message 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 event type.

Constructor Detail

StoreEvent

public StoreEvent(Store source, int type, String message)
Constructor.

Parameters: source the store type the type of event (ALERT or NOTICE) message the notification message

Method Detail

dispatch

public void dispatch(Object listener)
Invokes the appropriate listener method.

getMessage

public String getMessage()
Returns the notification message.

getMessageType

public int getMessageType()
Returns the type of this event.
©