Class TelnetHandler
java.lang.Object
org.aesh.terminal.telnet.TelnetHandler
- Direct Known Subclasses:
TelnetTtyConnection
The handler that defines the callbacks for a telnet connection.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonClose()The telnet connection closed.protected voidonCommand(byte command) protected voidonData(byte[] data) Process data sent by the client.protected voidonEcho(boolean echo) protected voidonNAWS(boolean naws) protected voidonOpen(TelnetConnection conn) The telnet connection opened.protected voidonReceiveBinary(boolean binary) protected voidonSendBinary(boolean binary) protected voidonSGA(boolean sga) protected voidonSize(int width, int height) protected voidonTerminalType(String terminalType)
-
Constructor Details
-
TelnetHandler
public TelnetHandler()
-
-
Method Details
-
onOpen
The telnet connection opened.- Parameters:
conn- the connection
-
onClose
protected void onClose()The telnet connection closed. -
onData
protected void onData(byte[] data) Process data sent by the client.- Parameters:
data- the data
-
onSize
protected void onSize(int width, int height) -
onTerminalType
-
onCommand
protected void onCommand(byte command) -
onNAWS
protected void onNAWS(boolean naws) -
onEcho
protected void onEcho(boolean echo) -
onSGA
protected void onSGA(boolean sga) -
onSendBinary
protected void onSendBinary(boolean binary) -
onReceiveBinary
protected void onReceiveBinary(boolean binary)
-