aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 052a79eab..7505561e9 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -162,6 +162,7 @@ public class ServerManager {
initTaipServer("taip");
initKhdServer("khd");
initPiligrimServer("piligrim");
+ initStl060Server("stl060");
// Initialize web server
if (Boolean.valueOf(properties.getProperty("http.enable"))) {
@@ -1060,4 +1061,17 @@ public class ServerManager {
}
}
+ private void initStl060Server(String protocol) throws SQLException {
+ if (isProtocolEnabled(properties, protocol)) {
+ serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
+ @Override
+ protected void addSpecificHandlers(ChannelPipeline pipeline) {
+ pipeline.addLast("frameDecoder", new Stl060FrameDecoder(1024));
+ pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast("objectDecoder", new Stl060ProtocolDecoder(ServerManager.this));
+ }
+ });
+ }
+ }
+
}