Skip to content

Commit

Permalink
Issue #987 - move checkGzExists default to false
Browse files Browse the repository at this point in the history
+ Flag existing methods / fields as deprecated
+ Indicate removal in Jetty 10.x

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed Mar 27, 2018
1 parent 6821506 commit 23788db
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -156,7 +156,11 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory

private int _minGzipSize=DEFAULT_MIN_GZIP_SIZE;
private int _compressionLevel=Deflater.DEFAULT_COMPRESSION;
private boolean _checkGzExists = true;
/**
* @deprecated feature will be removed in Jetty 10.x, with no replacement.
*/
@Deprecated
private boolean _checkGzExists = false;
private boolean _syncFlush = false;
private int _inflateBufferSize = -1;
private EnumSet<DispatcherType> _dispatchers = EnumSet.of(DispatcherType.REQUEST);
Expand Down Expand Up @@ -399,6 +403,10 @@ protected void doStart() throws Exception
super.doStart();
}

/**
* @deprecated feature will be removed in Jetty 10.x, with no replacement.
*/
@Deprecated
public boolean getCheckGzExists()
{
return _checkGzExists;
Expand Down Expand Up @@ -780,7 +788,9 @@ public void recycle(Deflater deflater)
*
* @param checkGzExists whether to check if a static gz file exists for
* the resource that the DefaultServlet may serve as precompressed.
* @deprecated feature will be removed in Jetty 10.x, with no replacement.
*/
@Deprecated
public void setCheckGzExists(boolean checkGzExists)
{
_checkGzExists = checkGzExists;
Expand Down

0 comments on commit 23788db

Please sign in to comment.