diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-16 12:15:43 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-16 12:15:44 +1300 |
commit | 421c13cf3aefeb0de6e057bf9d92ee4347d68f2f (patch) | |
tree | 0d1b2965ca51705d52784dcc55882e12bff24317 /src/org/traccar/BasePipelineFactory.java | |
parent | e151bd07a685d8b77ff6c24455ad0520e68843d4 (diff) | |
download | trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.tar.gz trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.tar.bz2 trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.zip |
Remove remaining handler names
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index a11d4fcfd..3c309d224 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -255,6 +255,19 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> { addProtocolHandlers(new PipelineBuilder() { @Override + public void addLast(ChannelHandler handler) { + if (!(handler instanceof BaseProtocolDecoder || handler instanceof BaseProtocolEncoder)) { + if (handler instanceof ChannelInboundHandler) { + handler = new WrapperInboundHandler((ChannelInboundHandler) handler); + } else { + handler = new WrapperOutboundHandler((ChannelOutboundHandler) handler); + } + } + pipeline.addLast(handler); + } + + // TODO remove + @Override public void addLast(String name, ChannelHandler handler) { if (!(handler instanceof BaseProtocolDecoder || handler instanceof BaseProtocolEncoder)) { if (handler instanceof ChannelInboundHandler) { |