Class NettyTelnetConnection
java.lang.Object
org.aesh.terminal.telnet.TelnetConnection
org.aesh.terminal.telnet.netty.NettyTelnetConnection
Netty-based implementation of TelnetConnection for handling Telnet I/O.
- Author:
- Julien Viet
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNettyTelnetConnection(TelnetHandler handler, io.netty.channel.ChannelHandlerContext context) Creates a new NettyTelnetConnection. -
Method Summary
Methods inherited from class TelnetConnection
onInit, onOptionDo, onOptionDont, onOptionParameters, onOptionWill, onOptionWont, receive, write, writeDoOption, writeWillOption
-
Constructor Details
-
NettyTelnetConnection
Creates a new NettyTelnetConnection.- Parameters:
handler- the telnet handler for processing eventscontext- the Netty channel handler context
-
-
Method Details
-
execute
- Specified by:
executein classTelnetConnection
-
schedule
- Specified by:
schedulein classTelnetConnection
-
send
protected void send(byte[] data) - Specified by:
sendin classTelnetConnection
-
onClose
protected void onClose()- Overrides:
onClosein classTelnetConnection
-
close
public void close()Description copied from class:TelnetConnectionCloses the telnet connection.- Specified by:
closein classTelnetConnection
-