Fix naming
This commit is contained in:
parent
bc483724f4
commit
c7c9e743ce
@ -38,7 +38,7 @@ public class TelnetServer {
|
||||
ServerBootstrap b = new ServerBootstrap();
|
||||
b.group(bossGroup, workerGroup)
|
||||
.channel(NioServerSocketChannel.class)
|
||||
.childHandler(new TelnetServerPipelineFactory());
|
||||
.childHandler(new TelnetServerInitializer());
|
||||
|
||||
b.bind(port).sync().channel().closeFuture().sync();
|
||||
} finally {
|
||||
|
@ -26,7 +26,7 @@ import io.netty.handler.codec.string.StringEncoder;
|
||||
/**
|
||||
* Creates a newly configured {@link ChannelPipeline} for a new channel.
|
||||
*/
|
||||
public class TelnetServerPipelineFactory extends ChannelInitializer<SocketChannel> {
|
||||
public class TelnetServerInitializer extends ChannelInitializer<SocketChannel> {
|
||||
private static final StringDecoder DECODER = new StringDecoder();
|
||||
private static final StringEncoder ENCODER = new StringEncoder();
|
||||
private static final TelnetServerHandler SERVERHANDLER = new TelnetServerHandler();
|
Loading…
Reference in New Issue
Block a user