ConnectionEvent (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail.event Class ConnectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.mail.event.MailEvent
          extended by javax.mail.event.ConnectionEvent
所有已实现的接口:
Serializable

public class ConnectionEvent
extends MailEvent

This class models Connection events.

作者:
John Mani
另请参见:
Serialized Form

字段摘要
static int CLOSED
          A connection was closed.
static int DISCONNECTED
          A connection was disconnected (not currently used).
static int OPENED
          A connection was opened.
protected  int type
          The event type.
 
Fields inherited from class java.util.EventObject
source
 
构造器摘要
ConnectionEvent(Object source, int type)
          Constructor
 
方法摘要
 void dispatch(Object listener)
          Invokes the appropriate ConnectionListener method
 int getType()
          Return the type of this event
 
类方法继承 java.util.EventObject
getSource, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

OPENED

public static final int OPENED
A connection was opened.

另请参见:
常量字段


DISCONNECTED

public static final int DISCONNECTED
A connection was disconnected (not currently used).

另请参见:
常量字段


CLOSED

public static final int CLOSED
A connection was closed.

另请参见:
常量字段


type

protected int type
The event type.

构造器详细信息

ConnectionEvent

public ConnectionEvent(Object source,
                       int type)
Constructor

参数:
source - The source object

方法详细信息

getType

public int getType()
Return the type of this event

返回:
type

dispatch

public void dispatch(Object listener)
Invokes the appropriate ConnectionListener method

规范说明:
dispatch in class MailEvent

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.