类 javax.mail.event.ConnectionEvent
的使用

使用 ConnectionEvent 的软件包
javax.mail.event Listeners and events for the JavaMail API. 
 

javax.mail.eventConnectionEvent 的使用
 

参数类型为 ConnectionEventjavax.mail.event 中的方法
 void ConnectionListener.closed(ConnectionEvent e)
          Invoked when a Store/Folder/Transport is closed.
 void ConnectionAdapter.closed(ConnectionEvent e)
           
 void ConnectionListener.disconnected(ConnectionEvent e)
          Invoked when a Store is disconnected.
 void ConnectionAdapter.disconnected(ConnectionEvent e)
           
 void ConnectionListener.opened(ConnectionEvent e)
          Invoked when a Store/Folder/Transport is opened.
 void ConnectionAdapter.opened(ConnectionEvent e)
           
 



Copyright © 2013. All Rights Reserved.