Class GzipEncodingHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class GzipEncodingHandler
    extends io.undertow.server.handlers.encoding.EncodingHandler
    Author:
    Andrea Di Cesare <andrea@softinstigate.com>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.undertow.server.handlers.encoding.EncodingHandler

        io.undertow.server.handlers.encoding.EncodingHandler.Builder
    • Constructor Summary

      Constructors 
      Constructor Description
      GzipEncodingHandler​(io.undertow.server.HttpHandler next, boolean forceCompression)
      Creates a new instance of GzipEncodingHandler
    • Constructor Detail

      • GzipEncodingHandler

        public GzipEncodingHandler​(io.undertow.server.HttpHandler next,
                                   boolean forceCompression)
        Creates a new instance of GzipEncodingHandler
        Parameters:
        next -
        forceCompression - if true requests without gzip encoding in Accept-Encoding header will be rejected
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Overrides:
        handleRequest in class io.undertow.server.handlers.encoding.EncodingHandler
        Parameters:
        exchange -
        Throws:
        Exception