diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 09:24:39 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 09:24:39 -0800 |
commit | 39f5dcfec7a3bfb9358c9f3a11038cfce21815b4 (patch) | |
tree | 4411b9556a24c8b010d33b83f64db476beff77cc /src/org | |
parent | bf51c1994531da91f364b81d6d8c0778ed9c3570 (diff) | |
download | trackermap-server-39f5dcfec7a3bfb9358c9f3a11038cfce21815b4.tar.gz trackermap-server-39f5dcfec7a3bfb9358c9f3a11038cfce21815b4.tar.bz2 trackermap-server-39f5dcfec7a3bfb9358c9f3a11038cfce21815b4.zip |
Add string encoder
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/FifotrackProtocol.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/FifotrackProtocol.java b/src/org/traccar/protocol/FifotrackProtocol.java index 5de581c7a..371e01e55 100644 --- a/src/org/traccar/protocol/FifotrackProtocol.java +++ b/src/org/traccar/protocol/FifotrackProtocol.java @@ -17,6 +17,7 @@ package org.traccar.protocol; import io.netty.handler.codec.LineBasedFrameDecoder; import io.netty.handler.codec.string.StringDecoder; +import io.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; @@ -28,6 +29,7 @@ public class FifotrackProtocol extends BaseProtocol { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new LineBasedFrameDecoder(1024)); + pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); pipeline.addLast(new FifotrackProtocolDecoder(FifotrackProtocol.this)); } |