Class ConnectionEvent

java.lang.Object
org.jline.builtins.telnet.ConnectionEvent

public class ConnectionEvent extends 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)
Author:
Dieter Wimberger
See Also:
  • Constructor Details

    • 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 Details

    • 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.