aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-18 21:47:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-18 21:47:03 +1200
commite0c1c52e54ba7bd6f08b0658fe03e84b8034347b (patch)
treece012be873ce84fe2ba7caa2525cccec13424e60 /src/org/traccar/ServerManager.java
parentf8665780919e95e8828fb7c771904d1039398e61 (diff)
downloadtrackermap-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.tar.gz
trackermap-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.tar.bz2
trackermap-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.zip
Add Noran/UniGuard support (fix #296)
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 2f07e2b50..f5130816f 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -148,6 +148,7 @@ public class ServerManager {
initGotopServer("gotop");
initTotemServer("totem");
initGatorServer("gator");
+ initNoranServer("noran");
// Initialize web server
if (Boolean.valueOf(properties.getProperty("http.enable"))) {
@@ -956,4 +957,15 @@ public class ServerManager {
}
}
+ private void initNoranServer(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 NoranProtocolDecoder(ServerManager.this));
+ }
+ });
+ }
+ }
+
}