aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TranSyncProtocol.java
diff options
context:
space:
mode:
authorNikolay Vlahovski <nvlahovski@gmail.com>2023-05-15 19:42:22 +0300
committerNikolay Vlahovski <nvlahovski@gmail.com>2023-05-15 19:42:22 +0300
commit6dae98179630a15c5f62899b32ed093e293822e2 (patch)
tree364ba283fca1ea7e38f4c0b4c3c02d5356caf660 /src/main/java/org/traccar/protocol/TranSyncProtocol.java
parent553527d9fbe689be243acbf219bed432f15c25e3 (diff)
downloadtrackermap-server-6dae98179630a15c5f62899b32ed093e293822e2.tar.gz
trackermap-server-6dae98179630a15c5f62899b32ed093e293822e2.tar.bz2
trackermap-server-6dae98179630a15c5f62899b32ed093e293822e2.zip
Add [Protocol]TranSyncProtocol
Add TranSyncProtocol.java Add TranSyncProtocolDecoder.java Add TranSyncProtocolDecoderTest.java
Diffstat (limited to 'src/main/java/org/traccar/protocol/TranSyncProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/TranSyncProtocol.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/TranSyncProtocol.java b/src/main/java/org/traccar/protocol/TranSyncProtocol.java
new file mode 100644
index 000000000..0634642df
--- /dev/null
+++ b/src/main/java/org/traccar/protocol/TranSyncProtocol.java
@@ -0,0 +1,22 @@
+package org.traccar.protocol;
+
+import org.traccar.BaseProtocol;
+import org.traccar.PipelineBuilder;
+import org.traccar.TrackerServer;
+import org.traccar.config.Config;
+
+import javax.inject.Inject;
+
+public class TranSyncProtocol extends BaseProtocol {
+
+ @Inject
+ public TranSyncProtocol(Config config) {
+ addServer(new TrackerServer(config, getName(), false) {
+ @Override
+ protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
+ pipeline.addLast(new TranSyncProtocolDecoder(TranSyncProtocol.this));
+ }
+ });
+ }
+
+}