aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/PacificTrackProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-11 06:59:15 +0900
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-11 06:59:15 +0900
commitc3aeb5442d41688c9509c286c066cf3efebb52d4 (patch)
tree69e809fc3af744d58f7898bb934b3a21f85b0c6c /src/main/java/org/traccar/protocol/PacificTrackProtocol.java
parente723dc0f0749dbc0c228c7451990319725303cd4 (diff)
downloadtrackermap-server-c3aeb5442d41688c9509c286c066cf3efebb52d4.tar.gz
trackermap-server-c3aeb5442d41688c9509c286c066cf3efebb52d4.tar.bz2
trackermap-server-c3aeb5442d41688c9509c286c066cf3efebb52d4.zip
Implement Pacific Track protocol
Diffstat (limited to 'src/main/java/org/traccar/protocol/PacificTrackProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/PacificTrackProtocol.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/PacificTrackProtocol.java b/src/main/java/org/traccar/protocol/PacificTrackProtocol.java
new file mode 100644
index 000000000..08991ab64
--- /dev/null
+++ b/src/main/java/org/traccar/protocol/PacificTrackProtocol.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2019 Anton Tananaev (anton@traccar.org)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.traccar.protocol;
+
+import org.traccar.BaseProtocol;
+import org.traccar.PipelineBuilder;
+import org.traccar.TrackerServer;
+
+public class PacificTrackProtocol extends BaseProtocol {
+
+ public PacificTrackProtocol() {
+ addServer(new TrackerServer(true, getName()) {
+ @Override
+ protected void addProtocolHandlers(PipelineBuilder pipeline) {
+ pipeline.addLast(new PacificTrackProtocolDecoder(PacificTrackProtocol.this));
+ }
+ });
+ }
+
+}