use of org.opennms.netmgt.provision.detector.simple.support.LineOrientedRequestEncoder in project opennms by OpenNMS.
the class AsyncMultilineDetectorNettyImpl method appendToPipeline.
@Override
protected void appendToPipeline(ChannelPipeline retval) {
// Upstream handlers
retval.addLast("frameDecoder", new DelimiterBasedFrameDecoder(1024, Delimiters.lineDelimiter()));
retval.addLast("stringDecoder", new StringDecoder(CharsetUtil.UTF_8));
retval.addLast("multilineDecoder", new MultilineOrientedResponseDecoder());
// Downstream handlers
retval.addLast("stringEncoder", new StringEncoder(CharsetUtil.UTF_8));
retval.addLast("lineEncoder", new LineOrientedRequestEncoder());
}
use of org.opennms.netmgt.provision.detector.simple.support.LineOrientedRequestEncoder in project opennms by OpenNMS.
the class AsyncLineOrientedDetectorNettyImpl method appendToPipeline.
@Override
protected void appendToPipeline(ChannelPipeline retval) {
// Upstream handlers
retval.addLast("frameDecoder", new DelimiterBasedFrameDecoder(1024, Delimiters.lineDelimiter()));
retval.addLast("stringDecoder", new StringDecoder(CharsetUtil.UTF_8));
retval.addLast("lineDecoder", new LineOrientedResponseDecoder());
// Downstream handlers
retval.addLast("stringEncoder", new StringEncoder(CharsetUtil.UTF_8));
retval.addLast("lineEncoder", new LineOrientedRequestEncoder());
}
Aggregations