Class GzipHandlerUtil

java.lang.Object
org.apache.pulsar.broker.web.GzipHandlerUtil

public class GzipHandlerUtil extends Object
  • Constructor Details

    • GzipHandlerUtil

      public GzipHandlerUtil()
  • Method Details

    • wrapWithGzipHandler

      public static org.eclipse.jetty.server.Handler wrapWithGzipHandler(org.eclipse.jetty.server.Handler innerHandler, List<String> gzipCompressionExcludedPaths)
    • isGzipCompressionCompletelyDisabled

      public static boolean isGzipCompressionCompletelyDisabled(List<String> gzipCompressionExcludedPaths)
    • isGzipCompressionEnabledForEndpoint

      public static boolean isGzipCompressionEnabledForEndpoint(List<String> gzipCompressionExcludedPaths, String endpoint)
      Check if GZIP compression is enabled for the given endpoint.
      Parameters:
      gzipCompressionExcludedPaths - list of paths that should not be compressed
      endpoint - the endpoint to check
      Returns:
      true if GZIP compression is enabled for the endpoint, false otherwise