|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.net.ConnectionEvent
public class 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. It occurs when the connection sent a NVT BREAK. |
static int |
CONNECTION_BROKEN
Defines the connection broken event type. It occurs if a connection has to be closed by the system due to communication problems (i.e. |
static int |
CONNECTION_IDLE
Defines the connection idle event type. It occurs if a connection has been idle exceeding the configured time to warning. |
static int |
CONNECTION_LOGOUTREQUEST
Defines the connection requested logout event type. It occurs if a connection requested disgraceful logout by sending a |
static int |
CONNECTION_TIMEDOUT
Defines the connection timed out event type. It occurs if a connection has been idle exceeding the configured time to warning and the configured time to timedout. |
| 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||