aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GpsmtaProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 11:40:00 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 11:40:00 +1300
commiteb8b9dac624fcbb68659c1d6edf33bdfae2038dc (patch)
treee55d072902d1fc33d2cc06cd68181e410e6b1c39 /src/org/traccar/protocol/GpsmtaProtocol.java
parent734aaecb5f1fb07869873801080609c24b459b56 (diff)
downloadtrackermap-server-eb8b9dac624fcbb68659c1d6edf33bdfae2038dc.tar.gz
trackermap-server-eb8b9dac624fcbb68659c1d6edf33bdfae2038dc.tar.bz2
trackermap-server-eb8b9dac624fcbb68659c1d6edf33bdfae2038dc.zip
Add encoder to GPSMTA pipeline
Diffstat (limited to 'src/org/traccar/protocol/GpsmtaProtocol.java')
-rw-r--r--src/org/traccar/protocol/GpsmtaProtocol.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/GpsmtaProtocol.java b/src/org/traccar/protocol/GpsmtaProtocol.java
index 2c4c1f218..fe586644a 100644
--- a/src/org/traccar/protocol/GpsmtaProtocol.java
+++ b/src/org/traccar/protocol/GpsmtaProtocol.java
@@ -18,6 +18,7 @@ package org.traccar.protocol;
import org.jboss.netty.bootstrap.ConnectionlessBootstrap;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.handler.codec.string.StringDecoder;
+import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
import org.traccar.TrackerServer;
@@ -35,6 +36,7 @@ public class GpsmtaProtocol extends BaseProtocol {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new GpsmtaProtocolDecoder(GpsmtaProtocol.this));
}
});