aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tr900Protocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Tr900Protocol.java')
-rw-r--r--src/org/traccar/protocol/Tr900Protocol.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/Tr900Protocol.java b/src/org/traccar/protocol/Tr900Protocol.java
index 41af70f8b..b70521b35 100644
--- a/src/org/traccar/protocol/Tr900Protocol.java
+++ b/src/org/traccar/protocol/Tr900Protocol.java
@@ -22,16 +22,10 @@ import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
-import java.util.List;
-
public class Tr900Protocol extends BaseProtocol {
public Tr900Protocol() {
- }
-
- @Override
- public void initTrackerServers(List<TrackerServer> serverList) {
- serverList.add(new TrackerServer(false, getName()) {
+ addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new LineBasedFrameDecoder(1024));
@@ -40,7 +34,7 @@ public class Tr900Protocol extends BaseProtocol {
pipeline.addLast(new Tr900ProtocolDecoder(Tr900Protocol.this));
}
});
- serverList.add(new TrackerServer(true, getName()) {
+ addServer(new TrackerServer(true, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new StringEncoder());