FileDocCategorySizeDatePackage
StoreEvent.javaAPI DocJavaMail 1.4.33496Tue Nov 17 10:38:12 GMT 2009javax.mail.event

StoreEvent

public class StoreEvent extends MailEvent
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.
author
John Mani

Fields 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.
private static final long
serialVersionUID
Constructors Summary
public StoreEvent(Store store, int type, String message)
Constructor.

param
store The source Store


                
           
	super(store);
	this.type = type;
	this.message = message;
    
Methods Summary
public voiddispatch(java.lang.Object listener)
Invokes the appropriate StoreListener method.

	((StoreListener)listener).notification(this);
    
public java.lang.StringgetMessage()
Get the message from the Store.

return
message from the Store

	return message;
    
public intgetMessageType()
Return the type of this event.

return
type
see
#ALERT
see
#NOTICE

	return type;