javax.mail.event

Class StoreEvent


public class StoreEvent
extends MailEvent

Event representing motifications from the Store connection.

Field Summary

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.

Constructor Summary

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

Method Summary

void
dispatch(Object listener)
String
getMessage()
Return the text to be displayed to the user.
int
getMessageType()
Return the message type.

Methods inherited from class javax.mail.event.MailEvent

dispatch

Field Details

ALERT

public static final int ALERT
Indicates that this message is an alert.
Field Value:
1

NOTICE

public static final int NOTICE
Indicates that this message is a notice.
Field Value:
2

message

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

type

protected int type
The message type.

Constructor Details

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 Details

dispatch

public void dispatch(Object listener)
Overrides:
dispatch in interface MailEvent

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