483413 - Warn on @Deprecated servlet/filter use

This commit is contained in:
Greg Wilkins 2015-12-02 12:57:54 +11:00
parent 6978eeb5c4
commit 1bd0602c9f
1 changed files with 6 additions and 0 deletions

View File

@ -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