Package org.apache.pulsar.broker.web
Class GzipHandlerUtil
java.lang.Object
org.apache.pulsar.broker.web.GzipHandlerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisGzipCompressionCompletelyDisabled(List<String> gzipCompressionExcludedPaths) static booleanisGzipCompressionEnabledForEndpoint(List<String> gzipCompressionExcludedPaths, String endpoint) Check if GZIP compression is enabled for the given endpoint.static org.eclipse.jetty.server.HandlerwrapWithGzipHandler(org.eclipse.jetty.server.Handler innerHandler, List<String> gzipCompressionExcludedPaths)
-
Constructor Details
-
GzipHandlerUtil
public GzipHandlerUtil()
-
-
Method Details
-
wrapWithGzipHandler
-
isGzipCompressionCompletelyDisabled
-
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 compressedendpoint- the endpoint to check- Returns:
- true if GZIP compression is enabled for the endpoint, false otherwise
-