diff options
author | Gabor Somogyi <Gabor_Somogyi@epam.com> | 2016-05-04 12:49:23 +0200 |
---|---|---|
committer | Gabor Somogyi <Gabor_Somogyi@epam.com> | 2016-05-04 12:49:23 +0200 |
commit | 1cc86f7df5704aa19d1af643c5fbf852a301858b (patch) | |
tree | 28ffae07132f57c2cdd7fd065b2315f4fb7cd7fd /src/org/traccar/ServerManager.java | |
parent | 1a605980b1a120614ccaeb56faac37b05a81a4e9 (diff) | |
download | trackermap-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.tar.gz trackermap-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.tar.bz2 trackermap-server-1cc86f7df5704aa19d1af643c5fbf852a301858b.zip |
SupportedCommand model removed
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 1fc145869..73c21599f 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -15,8 +15,6 @@ */ package org.traccar; -import org.traccar.model.SupportedCommand; - import java.io.File; import java.net.URI; import java.net.URL; @@ -92,17 +90,13 @@ public class ServerManager { } } - public Collection<SupportedCommand> getProtocolSuppportedCommands(String protocol) { - ArrayList<SupportedCommand> result = new ArrayList<>(); + public Collection<String> getProtocolSuppportedCommands(String protocol) { + ArrayList<String> result = new ArrayList<>(); if (protocol != null) { BaseProtocol baseProtocol = protocols.get(protocol); for (String commandKey : baseProtocol.getSupportedCommands()) { - SupportedCommand supportedCommand = new SupportedCommand(); - supportedCommand.setKey(commandKey); - String commandName = "command" + commandKey.substring(0, 1).toUpperCase() + commandKey.substring(1); - supportedCommand.setName(commandName); - result.add(supportedCommand); + result.add(commandKey); } } |