- close() - Method in class org.jline.builtins.telnet.Connection
-
Closes the connection and its underlying i/o and network
resources.
- closeInput() - Method in class org.jline.builtins.telnet.TelnetIO
-
Method to close the underlying inputstream to free system resources.
Most likely only to be called by the ConnectionManager upon clean up of
connections that ended or died.
- closeOutput() - Method in class org.jline.builtins.telnet.TelnetIO
-
Method to close the underlying output stream to free system resources.
Most likely only to be called by the ConnectionManager upon clean up of
connections that ended or died.
- Connection - Class in org.jline.builtins.telnet
-
Class that implements a connection with this telnet daemon.
- Connection(ThreadGroup, ConnectionData) - Constructor for class org.jline.builtins.telnet.Connection
-
Constructs a TelnetConnection by invoking its parent constructor
and setting of various members.
Subsequently instantiates the whole i/o subsystem, negotiating
telnet protocol level options etc.
- ConnectionData - Class in org.jline.builtins.telnet
-
An utility class that is used to store and allow retrieval
of all data associated with a connection.
- ConnectionData(Socket, ConnectionManager) - Constructor for class org.jline.builtins.telnet.ConnectionData
-
Constructs a ConnectionData instance storing vital
information about a connection.
- ConnectionEvent - Class in org.jline.builtins.telnet
-
Class implementing a ConnectionEvent.
These events are used to communicate things that are
supposed to be handled within the application context.
- ConnectionEvent(Connection, ConnectionEvent.Type) - Constructor for class org.jline.builtins.telnet.ConnectionEvent
-
Constructs a new instance of a ConnectionEvent
with a given source (Connection) and a given type.
- ConnectionEvent.Type - Enum in org.jline.builtins.telnet
-
- ConnectionFilter - Interface in org.jline.builtins.telnet
-
Interface defining a generic IP level connection
filter.
Due to the fact that this task depends heavily on
application context, I chose a very generic way
of applying IP level connection filtering.
- connectionIdle(ConnectionEvent) - Method in interface org.jline.builtins.telnet.ConnectionListener
-
Called when a CONNECTION_IDLE event occured.
- ConnectionListener - Interface in org.jline.builtins.telnet
-
Interface to be implemented if a class wants to
qualify as a ConnectionListener.
Note that a Shell is per contract also forced to
implement this interface.
- connectionLogoutRequest(ConnectionEvent) - Method in interface org.jline.builtins.telnet.ConnectionListener
-
Called when a CONNECTION_LOGOUTREQUEST occured.
- ConnectionManager - Class in org.jline.builtins.telnet
-
Class that takes care for active and queued connection.
- ConnectionManager() - Constructor for class org.jline.builtins.telnet.ConnectionManager
-
- ConnectionManager(int, int, int, int, ConnectionFilter, String, boolean) - Constructor for class org.jline.builtins.telnet.ConnectionManager
-
- connectionSentBreak(ConnectionEvent) - Method in interface org.jline.builtins.telnet.ConnectionListener
-
Called when a CONNECTION_BREAK event occured.
- connectionTerminalGeometryChanged(ConnectionEvent) - Method in interface org.jline.builtins.telnet.ConnectionListener
-
Called when a CONNECTION_TERMINAL_GEOMETRY_CHANGED event occured.
- connectionTimedOut(ConnectionEvent) - Method in interface org.jline.builtins.telnet.ConnectionListener
-
Called when a CONNECTION_TIMEDOUT event occured.
- createConnection(ThreadGroup, ConnectionData) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- GA - Static variable in class org.jline.builtins.telnet.TelnetIO
-
Go Ahead
Newer Telnets do not make use of this option
that allows a specific communication mode.
- getConnection(int) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- getConnectionData() - Method in class org.jline.builtins.telnet.Connection
-
Method to access the associated connection data.
- getConnectionFilter() - Method in class org.jline.builtins.telnet.ConnectionManager
-
Gets the active ConnectionFilter instance or
returns null if no filter is set.
- getConnectionManager() - Method in class org.jline.builtins.telnet.PortListener
-
Returns reference to ConnectionManager instance associated
with the PortListener.
- getConnectionsByAdddress(InetAddress) - Method in class org.jline.builtins.telnet.ConnectionManager
-
Get all
Connection instances with the given
InetAddress.
- getDisconnectTimeout() - Method in class org.jline.builtins.telnet.ConnectionManager
-
- getEnvironment() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the hashmap for storing and
retrieving environment variables to be passed
between shells.
- getHostAddress() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the IP address of the connection.
- getHostName() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the fully qualified host name for the connection's IP address.
The name is cached on creation for performance reasons.
- getHousekeepingInterval() - Method in class org.jline.builtins.telnet.ConnectionManager
-
- getInetAddress() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the InetAddress object associated with the connection.
- getLastActivity() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns a timestamp of the last activity that happened on
the associated connection.
- getLocale() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the Locale object associated with the connection
by carrying out a simple domain match.
- getLoginShell() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the login shell name.
- getLoginShell() - Method in class org.jline.builtins.telnet.ConnectionManager
-
- getManager() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns a reference to the ConnectionManager the
connection is associated with.
- getMaxConnections() - Method in class org.jline.builtins.telnet.ConnectionManager
-
- getName() - Method in class org.jline.builtins.telnet.PortListener
-
Returns the name of this PortListener.
- getNegotiatedTerminalType() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the terminal type that has been negotiated
between the telnet client and the telnet server, in
of a String.
- getPort() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the remote port to which the socket is connected.
- getSocket() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns a reference to the socket the Connection
is associated with.
- getSource() - Method in class org.jline.builtins.telnet.ConnectionEvent
-
Accessor method returning the source of the
ConnectionEvent instance.
- getTerminalColumns() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the width of the terminal in columns for convenience.
- getTerminalGeometry() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the terminal geometry in an array of two integers.
- getTerminalRows() - Method in class org.jline.builtins.telnet.ConnectionData
-
Returns the height of the terminal in rows for convenience.
- getType() - Method in class org.jline.builtins.telnet.ConnectionEvent
-
Method that helps identifying the type.
- getWarningTimeout() - Method in class org.jline.builtins.telnet.ConnectionManager
-
- SB - Static variable in class org.jline.builtins.telnet.TelnetIO
-
Marks start of a subnegotiation.
- SE - Static variable in class org.jline.builtins.telnet.TelnetIO
-
Marks end of subnegotiation.
- SEND - Static variable in class org.jline.builtins.telnet.TelnetIO
-
TTYPE subnegotiation: SEND
- SEND_LOC - Static variable in class org.jline.builtins.telnet.TelnetIO
-
- setAvailable(boolean) - Method in class org.jline.builtins.telnet.PortListener
-
Sets the availability flag of this PortListener.
- setConnection(Connection) - Method in class org.jline.builtins.telnet.TelnetIO
-
- setConnectionFilter(ConnectionFilter) - Method in class org.jline.builtins.telnet.ConnectionManager
-
Set a connection filter for this
ConnectionManager instance.
- setConnectionManager(ConnectionManager) - Method in class org.jline.builtins.telnet.PortListener
-
- setDisconnectTimeout(int) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- setEcho(boolean) - Method in class org.jline.builtins.telnet.TelnetIO
-
- setHousekeepingInterval(int) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- setLineMode(boolean) - Method in class org.jline.builtins.telnet.ConnectionData
-
Sets the line mode flag for the connection.
- setLineMode(boolean) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- setLoginShell(String) - Method in class org.jline.builtins.telnet.ConnectionData
-
Sets the login shell name.
- setLoginShell(String) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- setMaxConnections(int) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- setNegotiatedTerminalType(String) - Method in class org.jline.builtins.telnet.ConnectionData
-
Sets the terminal type that has been negotiated
between telnet client and telnet server, in form of
a String.
- setTerminalGeometry(int, int) - Method in class org.jline.builtins.telnet.ConnectionData
-
Sets the terminal geometry data.
This method should not be called explicitly
by the application (i.e.
- setWarned(boolean) - Method in class org.jline.builtins.telnet.ConnectionData
-
Sets the state of the idle warning flag.
Note that this method will also update the
the timestamp if the idle warning flag is removed,
which means its kind of a second way to achieve the
same thing as with the activity method.
- setWarningTimeout(int) - Method in class org.jline.builtins.telnet.ConnectionManager
-
- shell(Terminal, Map<String, String>) - Method in interface org.jline.builtins.telnet.Telnet.ShellProvider
-
- start() - Method in class org.jline.builtins.telnet.ConnectionManager
-
Starts this ConnectionManager.
- start() - Method in class org.jline.builtins.telnet.PortListener
-
Starts this PortListener.
- stop() - Method in class org.jline.builtins.telnet.ConnectionManager
-
Stops this ConnectionManager.
- stop() - Method in class org.jline.builtins.telnet.PortListener
-
Stops this PortListener, and returns
when everything was stopped successfully.
- SUPGA - Static variable in class org.jline.builtins.telnet.TelnetIO
-
Telnet Option: SUPress Go Ahead
This will be negotiated, all new telnet protocol implementations are
recommended to do this.