aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/PositionServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/http/PositionServlet.java')
-rw-r--r--src/org/traccar/http/PositionServlet.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/org/traccar/http/PositionServlet.java b/src/org/traccar/http/PositionServlet.java
index 57b411a79..6f973be3c 100644
--- a/src/org/traccar/http/PositionServlet.java
+++ b/src/org/traccar/http/PositionServlet.java
@@ -23,10 +23,15 @@ public class PositionServlet extends BaseServlet {
@Override
protected boolean handle(String command, HttpServletRequest req, HttpServletResponse resp) throws Exception {
- if (command.equals("/get")) {
- get(req, resp);
+
+ switch (command) {
+ case "/get":
+ get(req, resp);
+ break;
+ default:
+ return false;
}
- return true;
+ return true;
}
private void get(HttpServletRequest req, HttpServletResponse resp) throws Exception {