aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/BaseResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-08 11:55:27 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-08 11:55:27 +0500
commit16771c045a3d6fdffad322e55b6d346c93a03f71 (patch)
tree0990e6387c8143e2da90cf3cc0e4b0184c9bc8b7 /src/org/traccar/api/BaseResource.java
parent24346c8afd219c607e18306aa509f6029d3e850c (diff)
downloadtrackermap-server-16771c045a3d6fdffad322e55b6d346c93a03f71.tar.gz
trackermap-server-16771c045a3d6fdffad322e55b6d346c93a03f71.tar.bz2
trackermap-server-16771c045a3d6fdffad322e55b6d346c93a03f71.zip
- Used @Consumes and @Produces instead of direct header access
- Renamed General to Summary - Other changes
Diffstat (limited to 'src/org/traccar/api/BaseResource.java')
-rw-r--r--src/org/traccar/api/BaseResource.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/org/traccar/api/BaseResource.java b/src/org/traccar/api/BaseResource.java
index 8259f8868..567b9735a 100644
--- a/src/org/traccar/api/BaseResource.java
+++ b/src/org/traccar/api/BaseResource.java
@@ -15,7 +15,6 @@
*/
package org.traccar.api;
-import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.SecurityContext;
public class BaseResource {
@@ -23,9 +22,6 @@ public class BaseResource {
@javax.ws.rs.core.Context
private SecurityContext securityContext;
- @javax.ws.rs.core.Context
- private HttpHeaders headers;
-
protected long getUserId() {
UserPrincipal principal = (UserPrincipal) securityContext.getUserPrincipal();
if (principal != null) {
@@ -33,9 +29,4 @@ public class BaseResource {
}
return 0;
}
-
- protected String getAcceptHeader() {
- return headers.getRequestHeaders().getFirst("Accept");
- }
-
}