Home » apache-tomcat-6.0.26-src » javax » mail » event » [javadoc | source]
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.
    serial:
 
protected  String message    The message text to be presented to the user.
    serial:
 
Fields inherited from java.util.EventObject:
source
Constructor:
 public StoreEvent(Store store,
    int type,
    String message) 
    Constructor.
    Parameters:
    store - The source Store
Method from javax.mail.event.StoreEvent Summary:
dispatch,   getMessage,   getMessageType
Methods from javax.mail.event.MailEvent:
dispatch
Methods from java.util.EventObject:
getSource,   toString
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) 
    Invokes the appropriate StoreListener method.
 public String getMessage() 
    Get the message from the Store.
 public int getMessageType() 
    Return the type of this event.