aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MiniFinderProtocol.java
diff options
context:
space:
mode:
authorHans van den Elsen <hans.elsen@esds.nl>2016-03-17 19:52:27 +0100
committerHans van den Elsen <hans.elsen@esds.nl>2016-03-17 19:52:27 +0100
commitde22e61f5a09243f314b619c48466a25d71d4043 (patch)
tree6bd2f4d87447029f5d01481dfe50fcbbafc75008 /src/org/traccar/protocol/MiniFinderProtocol.java
parent7fd1c08dd2f789ddd37ff075a6ebda1645947616 (diff)
downloadtrackermap-server-de22e61f5a09243f314b619c48466a25d71d4043.tar.gz
trackermap-server-de22e61f5a09243f314b619c48466a25d71d4043.tar.bz2
trackermap-server-de22e61f5a09243f314b619c48466a25d71d4043.zip
Minifinder needs a stringEncoder as well as an ObjectEncoder
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocol.java')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocol.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocol.java b/src/org/traccar/protocol/MiniFinderProtocol.java
index b22539277..5557124e7 100644
--- a/src/org/traccar/protocol/MiniFinderProtocol.java
+++ b/src/org/traccar/protocol/MiniFinderProtocol.java
@@ -18,6 +18,7 @@ package org.traccar.protocol;
import org.jboss.netty.bootstrap.ServerBootstrap;
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.CharacterDelimiterFrameDecoder;
import org.traccar.TrackerServer;
@@ -40,6 +41,7 @@ public class MiniFinderProtocol extends BaseProtocol {
pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, ';'));
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("objectDecoder", new MiniFinderProtocolDecoder(MiniFinderProtocol.this));
+ pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectEncoder", new MiniFinderProtocolEncoder());
}
});