Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-12-01 20:57:54 -0500
committerGreg Wilkins2015-12-01 20:57:54 -0500
commit1bd0602c9f2f45259ab1afb278295e82984407c7 (patch)
tree30ad2cbd759654fee711bbc8a935e28a0d0bfaa4 /jetty-servlets
parent6978eeb5c4fc5d7194d9554cc6497c203d377e77 (diff)
downloadorg.eclipse.jetty.project-1bd0602c9f2f45259ab1afb278295e82984407c7.tar.gz
org.eclipse.jetty.project-1bd0602c9f2f45259ab1afb278295e82984407c7.tar.xz
org.eclipse.jetty.project-1bd0602c9f2f45259ab1afb278295e82984407c7.zip
483413 - Warn on @Deprecated servlet/filter use
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
index 9b7faf7e51..0969eca2cf 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/GzipFilter.java
@@ -27,6 +27,9 @@ import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
+import org.eclipse.jetty.util.log.Log;
+import org.eclipse.jetty.util.log.Logger;
+
/* ------------------------------------------------------------ */
/**
*/
@@ -34,9 +37,12 @@ import javax.servlet.ServletResponse;
@Deprecated
public class GzipFilter implements Filter
{
+ private static final Logger LOG = Log.getLogger(GzipFilter.class);
+
@Override
public void init(FilterConfig filterConfig) throws ServletException
{
+ LOG.warn("GzipFilter is deprecated. Use GzipHandler");
}
@Override

Back to the top