aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-05 15:36:56 +0200
committerGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-05 15:36:56 +0200
commitbe0040a7c18f5c165f1aaa27a194a189f50b1510 (patch)
tree7f566c14e753e58ab784328ef40a33bdc9793c91 /src/org/traccar/ServerManager.java
parentbe2e936c935fa8674f09ee3617b1ecfae4b90ff9 (diff)
downloadtrackermap-server-be0040a7c18f5c165f1aaa27a194a189f50b1510.tar.gz
trackermap-server-be0040a7c18f5c165f1aaa27a194a189f50b1510.tar.bz2
trackermap-server-be0040a7c18f5c165f1aaa27a194a189f50b1510.zip
Backend side model put back
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 59bb88829..f79d543ff 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -15,6 +15,8 @@
*/
package org.traccar;
+import org.traccar.model.SupportedCommand;
+
import java.io.File;
import java.net.URI;
import java.net.URL;
@@ -96,13 +98,15 @@ public class ServerManager {
}
}
- public Collection<String> getProtocolSuppportedCommands(String protocol) {
- List<String> result = new ArrayList<>();
+ public Collection<SupportedCommand> getProtocolSuppportedCommands(String protocol) {
+ List<SupportedCommand> result = new ArrayList<>();
if (protocol != null) {
BaseProtocol baseProtocol = protocols.get(protocol);
for (String commandKey : baseProtocol.getSupportedCommands()) {
- result.add(commandKey);
+ SupportedCommand supportedCommand = new SupportedCommand();
+ supportedCommand.setKey(commandKey);
+ result.add(supportedCommand);
}
}