aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/NDTPv6Protocol.java
diff options
context:
space:
mode:
authoranton2920 <anton2920@gmail.com>2022-09-06 10:47:37 +0100
committeranton2920 <anton2920@gmail.com>2022-09-07 09:49:14 +0100
commitd4513fa86539577e24ede46d40748d8d034b025c (patch)
treefac56c8a9c08dd486dbf08e1d588b7445b242304 /src/main/java/org/traccar/protocol/NDTPv6Protocol.java
parent3ae99730940f0f108a0c655f0cb52c109ca57885 (diff)
downloadtrackermap-server-d4513fa86539577e24ede46d40748d8d034b025c.tar.gz
trackermap-server-d4513fa86539577e24ede46d40748d8d034b025c.tar.bz2
trackermap-server-d4513fa86539577e24ede46d40748d8d034b025c.zip
Added support for NDTPv6 protocol
Diffstat (limited to 'src/main/java/org/traccar/protocol/NDTPv6Protocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/NDTPv6Protocol.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/NDTPv6Protocol.java b/src/main/java/org/traccar/protocol/NDTPv6Protocol.java
new file mode 100644
index 000000000..78dc11b50
--- /dev/null
+++ b/src/main/java/org/traccar/protocol/NDTPv6Protocol.java
@@ -0,0 +1,26 @@
+/*
+ * 2020 - NDTP v6 Protocol
+ */
+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 NDTPv6Protocol extends BaseProtocol {
+
+ @Inject
+ public NDTPv6Protocol(Config config) {
+ addServer(
+ new TrackerServer(config, getName(), false) {
+ @Override
+ protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
+ pipeline.addLast(new NDTPv6ProtocolDecoder(NDTPv6Protocol.this));
+ }
+ }
+ );
+ }
+}