aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 09:24:39 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 09:24:39 -0800
commit39f5dcfec7a3bfb9358c9f3a11038cfce21815b4 (patch)
tree4411b9556a24c8b010d33b83f64db476beff77cc /src/org
parentbf51c1994531da91f364b81d6d8c0778ed9c3570 (diff)
downloadtraccar-server-39f5dcfec7a3bfb9358c9f3a11038cfce21815b4.tar.gz
traccar-server-39f5dcfec7a3bfb9358c9f3a11038cfce21815b4.tar.bz2
traccar-server-39f5dcfec7a3bfb9358c9f3a11038cfce21815b4.zip
Add string encoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/FifotrackProtocol.java2
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));
}