Package org.jline.builtins.telnet
Class ConnectionEvent
java.lang.Object
org.jline.builtins.telnet.ConnectionEvent
Class implementing 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.
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.
- Version:
- 2.0 (16/07/2006)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConnectionEvent
(Connection source, ConnectionEvent.Type type) Constructs a new instance of a ConnectionEvent with a given source (Connection) and a given type. -
Method Summary
Modifier and TypeMethodDescriptionAccessor method returning the source of the ConnectionEvent instance.getType()
Method that helps identifying the type.
-
Field Details
-
source
-
type
-
-
Constructor Details
-
ConnectionEvent
Constructs a new instance of a ConnectionEvent with a given source (Connection) and a given type.- Parameters:
source
- Connection that represents the source of this event.type
- int that contains one of the defined event types.
-
-
Method Details
-
getSource
Accessor method returning the source of the ConnectionEvent instance.- Returns:
- Connection representing the source.
-
getType
Method that helps identifying the type.- Returns:
- Event type.
-