diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-18 21:47:03 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-18 21:47:03 +1200 |
commit | e0c1c52e54ba7bd6f08b0658fe03e84b8034347b (patch) | |
tree | ce012be873ce84fe2ba7caa2525cccec13424e60 /src/org/traccar/ServerManager.java | |
parent | f8665780919e95e8828fb7c771904d1039398e61 (diff) | |
download | traccar-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.tar.gz traccar-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.tar.bz2 traccar-server-e0c1c52e54ba7bd6f08b0658fe03e84b8034347b.zip |
Add Noran/UniGuard support (fix #296)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 12 |
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)); + } + }); + } + } + } |