public class StringMessageConfigurator extends java.lang.Object implements PipelineConfigurator<java.lang.String,java.lang.String>
PipelineConfigurator to configure StringEncoder and StringDecoder to
convert incoming ByteBuf into String and outgoing String as ByteBufStringEncoder,
StringDecoder| Constructor and Description |
|---|
StringMessageConfigurator() |
StringMessageConfigurator(java.nio.charset.Charset inputCharset,
java.nio.charset.Charset outputCharset) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
A callback to configure the passed
pipeline. |
public StringMessageConfigurator()
public StringMessageConfigurator(java.nio.charset.Charset inputCharset,
java.nio.charset.Charset outputCharset)
public void configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
PipelineConfiguratorpipeline. 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.