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 f30ff4189ca..9b81e18812c 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
@@ -63,7 +63,37 @@ import org.eclipse.jetty.util.log.Logger;
* This filter extends {@link UserAgentFilter} and if the the initParameter excludedAgents
* is set to a comma separated list of user agents, then these agents will be excluded from gzip content.
*
Init Parameters:
+ *+ * bufferSize The output buffer size. Defaults to 8192. Be careful as values <= 0 will lead to an + * {@link IllegalArgumentException}. + * @see java.util.zip.GZIPOutputStream#GZIPOutputStream(java.io.OutputStream, int) + * @see java.util.zip.DeflaterOutputStream#DeflaterOutputStream(java.io.OutputStream, Deflater, int) + * + * minGzipSize Content will only be compressed if content length is either unknown or greater + * than*/ public class GzipFilter extends UserAgentFilter { @@ -74,6 +104,8 @@ public class GzipFilter extends UserAgentFilter protected SetminGzipSize
. + * + * deflateCompressionLevel The compression level used for deflate compression. (0-9). + * @see java.util.zip.Deflater#Deflater(int, boolean) + * + * deflateNoWrap The noWrap setting for deflate compression. Defaults to true. (true/false) + * @see java.util.zip.Deflater#Deflater(int, boolean) * + * mimeTypes Comma separated list of mime types to compress. See description above. + * + * excludedAgents Comma separated list of user agents to exclude from compression. Does a + * {@link String#contains(CharSequence)} to check if the excluded agent occurs + * in the user-agent header. If it does -> no compression + * + * excludeAgentPatterns Same as excludedAgents, but accepts regex patterns for more complex matching. + * + * excludePaths Comma separated list of paths to exclude from compression. + * Does a {@link String#startsWith(String)} comparison to check if the path matches. + * If it does match -> no compression. To match subpaths useexcludePathPatterns
+ * instead. + * + * excludePathPatterns Same as excludePath, but accepts regex patterns for more complex matching. + *