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.java30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 0811a48be..f66eda351 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -143,6 +143,8 @@ public class ServerManager {
initPt3000Server("pt3000");
initRuptelaServer("ruptela");
initTopflytechServer("topflytech");
+ //initLaipacServer("laipac");
+ initAplicomServer("aplicom");
// Initialize web server
if (Boolean.valueOf(properties.getProperty("http.enable"))) {
@@ -754,7 +756,7 @@ public class ServerManager {
});
}
}
-
+
private void initWialonServer(String protocol) throws SQLException {
if (isProtocolEnabled(properties, protocol)) {
serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
@@ -886,4 +888,30 @@ public class ServerManager {
}
}
+ /*private void initLaipacServer(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 LineBasedFrameDecoder(1024));
+ pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast("stringEncoder", new StringEncoder());
+ pipeline.addLast("objectDecoder", new LaipacProtocolDecoder(ServerManager.this));
+ }
+ });
+ }
+ }*/
+
+ private void initAplicomServer(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 AplicomFrameDecoder());
+ pipeline.addLast("objectDecoder", new AplicomProtocolDecoder(ServerManager.this));
+ }
+ });
+ }
+ }
+
}