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
Description copied from class:TelnetConnectionExecute a task.- Specified by:
executein classTelnetConnection- Parameters:
task- the task to execute
-
schedule
Description copied from class:TelnetConnectionSchedule a task.- Specified by:
schedulein classTelnetConnection- Parameters:
task- the task to scheduledelay- the delayunit- the time unit
-
send
protected void send(byte[] data) Description copied from class:TelnetConnectionSend data.- Specified by:
sendin classTelnetConnection- Parameters:
data- the data to send
-
onClose
protected void onClose()Description copied from class:TelnetConnectionMethod.- Overrides:
onClosein classTelnetConnection
-
close
public void close()Description copied from class:TelnetConnectionCloses the telnet connection.- Specified by:
closein classTelnetConnection
-