aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gl100Protocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Gl100Protocol.java')
-rw-r--r--src/org/traccar/protocol/Gl100Protocol.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/Gl100Protocol.java b/src/org/traccar/protocol/Gl100Protocol.java
index 3c4230bda..063e606db 100644
--- a/src/org/traccar/protocol/Gl100Protocol.java
+++ b/src/org/traccar/protocol/Gl100Protocol.java
@@ -22,16 +22,10 @@ import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
-import java.util.List;
-
public class Gl100Protocol extends BaseProtocol {
public Gl100Protocol() {
- }
-
- @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 CharacterDelimiterFrameDecoder(1024, '\0'));
@@ -40,7 +34,7 @@ public class Gl100Protocol extends BaseProtocol {
pipeline.addLast(new Gl100ProtocolDecoder(Gl100Protocol.this));
}
});
- serverList.add(new TrackerServer(true, getName()) {
+ addServer(new TrackerServer(true, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
pipeline.addLast(new StringEncoder());