ConnectionListener (Java EE 5)

Java EE API


javax.mail.event Interface ConnectionListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
ConnectionAdapter

public interface ConnectionListener
extends EventListener

Implements: java.util.EventListener
Implemented by: ConnectionAdapter

Connection 事件的 Listener 接口。
英文文档:

This is the Listener interface for Connection events.

Author:
John Mani

Method Summary
 void
 void
 void
 

Method Detail

public void opened(ConnectionEvent e)
当 Store/Folder/Transport 打开时调用。
英文文档:

opened

void opened(ConnectionEvent e)
Invoked when a Store/Folder/Transport is opened.


public void disconnected(ConnectionEvent e)
当 Store 断开时调用。注意,文件夹不能被断开,因此文件夹不会激发此事件
英文文档:

disconnected

void disconnected(ConnectionEvent e)
Invoked when a Store is disconnected. Note that a folder cannot be disconnected, so a folder will not fire this event


public void closed(ConnectionEvent e)
当 Store/Folder/Transport 关闭时调用。
英文文档:

closed

void closed(ConnectionEvent e)
Invoked when a Store/Folder/Transport is closed.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!