|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.telnetd.net.ConnectionEvent
Class implmenting a ConnectionEvent.
These events are used to communicate things that are
supposed to be handled within the application context.
These events are processed by the Connection instance
calling upon its registered listeners.
Connection
,
ConnectionListener
Field Summary | |
static int |
CONNECTION_BREAK
Defines the connection sent break event type. |
static int |
CONNECTION_BROKEN
Defines the connection broken event type. |
static int |
CONNECTION_IDLE
Defines the connection idle event type. |
static int |
CONNECTION_LOGOUTREQUEST
Defines the connection requested logout event type. |
static int |
CONNECTION_TIMEDOUT
Defines the connection timed out event type. |
Constructor Summary | |
ConnectionEvent(Connection source,
int typeid)
Constructs a new instance of a ConnectionEvent with a given source (Connection) and a given type. |
Method Summary | |
Connection |
getConnection()
Deprecated. for better naming, replaced by getSource |
Connection |
getSource()
Accessor method returning the source of the ConnectionEvent instance. |
boolean |
isType(int typeid)
Method that helps identifying the type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CONNECTION_IDLE
public static final int CONNECTION_TIMEDOUT
public static final int CONNECTION_LOGOUTREQUEST
public static final int CONNECTION_BROKEN
public static final int CONNECTION_BREAK
Constructor Detail |
public ConnectionEvent(Connection source, int typeid)
source
- Connection that represents the source of this event.typeid
- int that contains one of the defined event types.Method Detail |
public Connection getSource()
public Connection getConnection()
getSource()
public boolean isType(int typeid)
typeid
- int that contains one of the defined event types.
|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |