public class SimpleTextProtocolConfigurator extends java.lang.Object implements PipelineConfigurator<java.lang.String,java.lang.String>
PipelineConfigurator
to have simple text based protocol.StringEncoder
,
StringLineDecoder
Constructor and Description |
---|
SimpleTextProtocolConfigurator() |
SimpleTextProtocolConfigurator(java.nio.charset.Charset inputCharset) |
Modifier and Type | Method and Description |
---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
A callback to configure the passed
pipeline . |
public SimpleTextProtocolConfigurator()
public SimpleTextProtocolConfigurator(java.nio.charset.Charset inputCharset)
public void configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
PipelineConfigurator
pipeline
. This will be invoked everytime a new netty pipeline is
created, which is whenever a new channel is established.configureNewPipeline
in interface PipelineConfigurator<java.lang.String,java.lang.String>
pipeline
- The pipeline to configure.