aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TaipProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-29 20:16:32 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-29 20:16:32 -0700
commite910ee9b63fab3b83efdfb128b81dcf28f6b2251 (patch)
tree9d181f80ca0225878a4814429efcd648fc40b858 /src/main/java/org/traccar/protocol/TaipProtocol.java
parent610a526a33fa1e6d8277f7fd71626ed5858d251e (diff)
downloadtrackermap-server-e910ee9b63fab3b83efdfb128b81dcf28f6b2251.tar.gz
trackermap-server-e910ee9b63fab3b83efdfb128b81dcf28f6b2251.tar.bz2
trackermap-server-e910ee9b63fab3b83efdfb128b81dcf28f6b2251.zip
Support TAIP prefixes
Diffstat (limited to 'src/main/java/org/traccar/protocol/TaipProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/TaipProtocol.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/TaipProtocol.java b/src/main/java/org/traccar/protocol/TaipProtocol.java
index b8f40a183..5df9f7d3c 100644
--- a/src/main/java/org/traccar/protocol/TaipProtocol.java
+++ b/src/main/java/org/traccar/protocol/TaipProtocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2021 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.
@@ -16,7 +16,6 @@
package org.traccar.protocol;
import io.netty.handler.codec.string.StringDecoder;
-import io.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.PipelineBuilder;
@@ -30,7 +29,7 @@ public class TaipProtocol extends BaseProtocol {
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, '<'));
pipeline.addLast(new StringDecoder());
- pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new TaipStringEncoder(TaipProtocol.this));
pipeline.addLast(new TaipProtocolDecoder(TaipProtocol.this));
}
});
@@ -38,7 +37,7 @@ public class TaipProtocol extends BaseProtocol {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new StringDecoder());
- pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new TaipStringEncoder(TaipProtocol.this));
pipeline.addLast(new TaipProtocolDecoder(TaipProtocol.this));
}
});