diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-09 17:47:56 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-09 17:47:56 -0800 |
commit | 36a49a88ea44da16b57e5256dc4c91c2e90a3792 (patch) | |
tree | 4ed2aa79e19fb613974ac217d7c959ac76730692 /src/main/java/org/traccar/protocol/TopinProtocol.java | |
parent | bc4a46a01e8d7c3e6238ba07f96eb67adc75c116 (diff) | |
download | trackermap-server-36a49a88ea44da16b57e5256dc4c91c2e90a3792.tar.gz trackermap-server-36a49a88ea44da16b57e5256dc4c91c2e90a3792.tar.bz2 trackermap-server-36a49a88ea44da16b57e5256dc4c91c2e90a3792.zip |
Implement Topin protocol
Diffstat (limited to 'src/main/java/org/traccar/protocol/TopinProtocol.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/TopinProtocol.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/TopinProtocol.java b/src/main/java/org/traccar/protocol/TopinProtocol.java new file mode 100644 index 000000000..844dd7518 --- /dev/null +++ b/src/main/java/org/traccar/protocol/TopinProtocol.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 TopinProtocol extends BaseProtocol { + + public TopinProtocol() { + addServer(new TrackerServer(false, getName()) { + @Override + protected void addProtocolHandlers(PipelineBuilder pipeline) { + pipeline.addLast(new TopinProtocolDecoder(TopinProtocol.this)); + } + }); + } + +} |