use of com.alliander.osgp.oslp.OslpDecoder in project Protocol-Adapter-OSLP by OSGP.
the class ApplicationContext method createPipeLine.
private ChannelPipeline createPipeLine() {
final ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("oslpEncoder", new OslpEncoder());
pipeline.addLast("oslpDecoder", new OslpDecoder(this.oslpSignature(), this.oslpSignatureProvider()));
pipeline.addLast("oslpSecurity", this.oslpSecurityHandler());
pipeline.addLast("oslpChannelHandler", this.oslpChannelHandler());
return pipeline;
}
use of com.alliander.osgp.oslp.OslpDecoder in project Protocol-Adapter-OSLP by OSGP.
the class OslpConfig method createChannelPipeline.
private ChannelPipeline createChannelPipeline(final ChannelHandler handler) throws ProtocolAdapterException {
final ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("loggingHandler", new LoggingHandler(InternalLogLevel.INFO, false));
pipeline.addLast("oslpEncoder", new OslpEncoder());
pipeline.addLast("oslpDecoder", new OslpDecoder(this.oslpSignature(), this.oslpSignatureProvider()));
pipeline.addLast("oslpSecurity", this.oslpSecurityHandler());
pipeline.addLast("oslpChannelHandler", handler);
return pipeline;
}
Aggregations