aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-17 22:35:30 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-17 22:35:30 +1200
commitf9210e4709188f7c344fe0dd94fe58b4a89307f8 (patch)
treed0f6f784e27d1d98fe76a11647d24672ffad84e8 /src/org/traccar/ServerManager.java
parent8cf628f7c70d12aeb3f54ad5363114e045863f2e (diff)
downloadtrackermap-server-f9210e4709188f7c344fe0dd94fe58b4a89307f8.tar.gz
trackermap-server-f9210e4709188f7c344fe0dd94fe58b4a89307f8.tar.bz2
trackermap-server-f9210e4709188f7c344fe0dd94fe58b4a89307f8.zip
Add Gator/Seeworld protocol (fix #217)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 593826553..2f07e2b50 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -147,6 +147,7 @@ public class ServerManager {
initAplicomServer("aplicom");
initGotopServer("gotop");
initTotemServer("totem");
+ initGatorServer("gator");
// Initialize web server
if (Boolean.valueOf(properties.getProperty("http.enable"))) {
@@ -944,4 +945,15 @@ public class ServerManager {
}
}
+ private void initGatorServer(String protocol) throws SQLException {
+ if (isProtocolEnabled(properties, protocol)) {
+ serverList.add(new TrackerServer(this, new ConnectionlessBootstrap(), protocol) {
+ @Override
+ protected void addSpecificHandlers(ChannelPipeline pipeline) {
+ pipeline.addLast("objectDecoder", new GatorProtocolDecoder(ServerManager.this));
+ }
+ });
+ }
+ }
+
}