aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-12-28 23:09:40 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-14 21:01:16 -0800
commitc1121777969fc5f183e325ad672b581cbe881895 (patch)
tree8d874f0244ceb68c7bc9f440f44b20cca882fdad /src/main/java/org/traccar/BaseProtocol.java
parent839751e76e329adb573150644bd6198beba0d3b6 (diff)
downloadtrackermap-server-c1121777969fc5f183e325ad672b581cbe881895.tar.gz
trackermap-server-c1121777969fc5f183e325ad672b581cbe881895.tar.bz2
trackermap-server-c1121777969fc5f183e325ad672b581cbe881895.zip
Extract connector interface
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocol.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocol.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/BaseProtocol.java b/src/main/java/org/traccar/BaseProtocol.java
index bd3391822..2fca9432e 100644
--- a/src/main/java/org/traccar/BaseProtocol.java
+++ b/src/main/java/org/traccar/BaseProtocol.java
@@ -35,7 +35,7 @@ public abstract class BaseProtocol implements Protocol {
private final String name;
private final Set<String> supportedDataCommands = new HashSet<>();
private final Set<String> supportedTextCommands = new HashSet<>();
- private final List<TrackerServer> serverList = new LinkedList<>();
+ private final List<TrackerConnector> connectorList = new LinkedList<>();
private StringProtocolEncoder textCommandEncoder = null;
@@ -54,12 +54,14 @@ public abstract class BaseProtocol implements Protocol {
}
protected void addServer(TrackerServer server) {
- serverList.add(server);
+ connectorList.add(server);
}
+ // TODO addClient
+
@Override
- public Collection<TrackerServer> getServerList() {
- return serverList;
+ public Collection<TrackerConnector> getConnectorList() {
+ return connectorList;
}
public void setSupportedDataCommands(String... commands) {