From ed7e73b5af4e4e84f3abd2dde73626f90de911bb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 1 Dec 2015 10:43:42 +1300 Subject: Explicitly register REST filters --- src/org/traccar/api/CORSResponseFilter.java | 2 -- src/org/traccar/api/SecurityRequestFilter.java | 2 -- 2 files changed, 4 deletions(-) (limited to 'src/org/traccar/api') diff --git a/src/org/traccar/api/CORSResponseFilter.java b/src/org/traccar/api/CORSResponseFilter.java index 039a749c4..89b49fc84 100644 --- a/src/org/traccar/api/CORSResponseFilter.java +++ b/src/org/traccar/api/CORSResponseFilter.java @@ -19,9 +19,7 @@ import java.io.IOException; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; -@Provider public class CORSResponseFilter implements ContainerResponseFilter { public static final String ACCESS_CONTROL_ALLOW_ORIGIN_KEY = "Access-Control-Allow-Origin"; diff --git a/src/org/traccar/api/SecurityRequestFilter.java b/src/org/traccar/api/SecurityRequestFilter.java index 9d59cdc01..e52df661b 100644 --- a/src/org/traccar/api/SecurityRequestFilter.java +++ b/src/org/traccar/api/SecurityRequestFilter.java @@ -25,9 +25,7 @@ import javax.annotation.security.RolesAllowed; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerRequestFilter; import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.ext.Provider; -@Provider public class SecurityRequestFilter implements ContainerRequestFilter { @javax.ws.rs.core.Context -- cgit v1.2.3