aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MiniFinderProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-12 19:42:53 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-12 19:42:53 +1300
commitf96a9f1b6f53ad8a25167360ca4545a83c24cac7 (patch)
treebdd29b24a16403b1e8a3d7cd4325391063b34b8a /src/org/traccar/protocol/MiniFinderProtocol.java
parentab5d21e16ac44957e04da0f06daf148af95e96be (diff)
parent4606737cc07b736f9c8f98ae680b928c94c082c8 (diff)
downloadtrackermap-server-f96a9f1b6f53ad8a25167360ca4545a83c24cac7.tar.gz
trackermap-server-f96a9f1b6f53ad8a25167360ca4545a83c24cac7.tar.bz2
trackermap-server-f96a9f1b6f53ad8a25167360ca4545a83c24cac7.zip
Merge pull request #1725 from hanselsen/master
Minifinder CUSTOM commands
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocol.java')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocol.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocol.java b/src/org/traccar/protocol/MiniFinderProtocol.java
index cd159c8b7..b22539277 100644
--- a/src/org/traccar/protocol/MiniFinderProtocol.java
+++ b/src/org/traccar/protocol/MiniFinderProtocol.java
@@ -21,6 +21,7 @@ import org.jboss.netty.handler.codec.string.StringDecoder;
import org.traccar.BaseProtocol;
import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.TrackerServer;
+import org.traccar.model.Command;
import java.util.List;
@@ -28,6 +29,7 @@ public class MiniFinderProtocol extends BaseProtocol {
public MiniFinderProtocol() {
super("minifinder");
+ setSupportedCommands(Command.TYPE_CUSTOM);
}
@Override
@@ -38,6 +40,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("objectEncoder", new MiniFinderProtocolEncoder());
}
});
}