}
return socketChannelFactory;
}
private ChannelPipelineFactory initChannelPipelineFactory() {
ChannelPipelineFactory pipelineFactory;
boolean enableCompression = compressionType.equalsIgnoreCase("deflate");
if (enableCompression || enableSsl || enableIpFilter) {
pipelineFactory = new AdvancedChannelPipelineFactory(
enableCompression, enableSsl, keystore,
keystorePassword, keystoreType, enableIpFilter,
patternRuleConfigDefinition);
} else {
pipelineFactory = new ChannelPipelineFactory() {
@Override
public ChannelPipeline getPipeline() throws Exception {
return Channels.pipeline();
}
};