Package org.jline.builtins.telnet
Class ConnectionEvent
- java.lang.Object
-
- org.jline.builtins.telnet.ConnectionEvent
-
public class ConnectionEvent extends java.lang.Object
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.- Version:
- 2.0 (16/07/2006)
- See Also:
Connection
,ConnectionListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectionEvent.Type
-
Field Summary
Fields Modifier and Type Field Description private Connection
source
private ConnectionEvent.Type
type
-
Constructor Summary
Constructors Constructor Description ConnectionEvent(Connection source, ConnectionEvent.Type type)
Constructs a new instance of a ConnectionEvent with a given source (Connection) and a given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getSource()
Accessor method returning the source of the ConnectionEvent instance.ConnectionEvent.Type
getType()
Method that helps identifying the type.
-
-
-
Field Detail
-
source
private final Connection source
-
type
private final ConnectionEvent.Type type
-
-
Constructor Detail
-
ConnectionEvent
public ConnectionEvent(Connection source, ConnectionEvent.Type type)
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 Detail
-
getSource
public Connection getSource()
Accessor method returning the source of the ConnectionEvent instance.- Returns:
- Connection representing the source.
-
getType
public ConnectionEvent.Type getType()
Method that helps identifying the type.- Returns:
- Event type.
-
-