aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/DeviceServlet.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 17:30:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 17:30:57 +1200
commitac88c14d7982ef7571ae6f09ec50267ea4f1062a (patch)
treeba1eed800ba1b18d4017d923ad7e843eabeabc24 /src/org/traccar/http/DeviceServlet.java
parente02651741e455c8263c412cf9e14ed3e2d9834fe (diff)
downloadtrackermap-server-ac88c14d7982ef7571ae6f09ec50267ea4f1062a.tar.gz
trackermap-server-ac88c14d7982ef7571ae6f09ec50267ea4f1062a.tar.bz2
trackermap-server-ac88c14d7982ef7571ae6f09ec50267ea4f1062a.zip
Reuse constants in servlets
Diffstat (limited to 'src/org/traccar/http/DeviceServlet.java')
-rw-r--r--src/org/traccar/http/DeviceServlet.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/org/traccar/http/DeviceServlet.java b/src/org/traccar/http/DeviceServlet.java
index c994ed266..260083e0e 100644
--- a/src/org/traccar/http/DeviceServlet.java
+++ b/src/org/traccar/http/DeviceServlet.java
@@ -26,10 +26,6 @@ import javax.servlet.http.HttpServletResponse;
import org.traccar.Context;
public class DeviceServlet extends HttpServlet {
-
- private static final long ASYNC_TIMEOUT = 120000;
-
- private static final String USER_ID = "userId";
@Override
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
@@ -53,7 +49,7 @@ public class DeviceServlet extends HttpServlet {
private void get(HttpServletRequest req, HttpServletResponse resp) throws IOException {
- long userId = (Long) req.getSession().getAttribute(USER_ID);
+ long userId = (Long) req.getSession().getAttribute(MainServlet.USER_ID);
JsonObjectBuilder result = Json.createObjectBuilder();