aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorGábor Somogyi <gabor.g.somogyi@gmail.com>2016-05-08 13:06:25 +0200
committerGábor Somogyi <gabor.g.somogyi@gmail.com>2016-05-08 13:29:18 +0200
commit301f2d314f446410da78615ac76ce0c07571d445 (patch)
tree71c96669b970bb8315388cc01db21e00b743796d /src/org/traccar/ServerManager.java
parent37bc675580c640d4fa7968fee575544fb3a550e3 (diff)
downloadtrackermap-server-301f2d314f446410da78615ac76ce0c07571d445.tar.gz
trackermap-server-301f2d314f446410da78615ac76ce0c07571d445.tar.bz2
trackermap-server-301f2d314f446410da78615ac76ce0c07571d445.zip
Review fixes
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index cf49b3e2c..010438a44 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -15,26 +15,19 @@
*/
package org.traccar;
-import org.traccar.model.CommandType;
-
import java.io.File;
import java.net.URI;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
-import java.util.ArrayList;
-import java.util.Collection;
import java.util.Enumeration;
-import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
-import java.util.Map;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
public class ServerManager {
- private final Map<String, BaseProtocol> protocols = new HashMap<>();
private final List<TrackerServer> serverList = new LinkedList<>();
public ServerManager() throws Exception {
@@ -70,7 +63,6 @@ public class ServerManager {
Class protocolClass = Class.forName(packageName + '.' + name);
if (BaseProtocol.class.isAssignableFrom(protocolClass)) {
BaseProtocol baseProtocol = (BaseProtocol) protocolClass.newInstance();
- protocols.put(baseProtocol.getName(), baseProtocol);
initProtocolServer(baseProtocol);
}
}
@@ -98,21 +90,4 @@ public class ServerManager {
}
}
- public Collection<CommandType> getProtocolCommandTypes(String protocol) {
- List<CommandType> result = new ArrayList<>();
-
- if (protocol != null) {
- BaseProtocol baseProtocol = protocols.get(protocol);
- if (baseProtocol != null) {
- for (String commandKey : baseProtocol.getSupportedCommands()) {
- CommandType commandType = new CommandType();
- commandType.setKey(commandKey);
- result.add(commandType);
- }
- }
- }
-
- return result;
- }
-
}