Package org.restheart.mongodb.handlers
Class GzipEncodingHandler
java.lang.Object
io.undertow.server.handlers.encoding.EncodingHandler
org.restheart.mongodb.handlers.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
ConstructorsConstructorDescriptionGzipEncodingHandler(io.undertow.server.HttpHandler next, boolean forceCompression) Creates a new instance of GzipEncodingHandler -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class io.undertow.server.handlers.encoding.EncodingHandler
getNext, getNoEncodingHandler, setNext, setNoEncodingHandler, toString
-
Constructor Details
-
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 Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Overrides:
handleRequestin classio.undertow.server.handlers.encoding.EncodingHandler- Parameters:
exchange-- Throws:
Exception
-