Package org.restheart.handlers
Class ConfigurableEncodingHandler
java.lang.Object
io.undertow.server.handlers.encoding.EncodingHandler
org.restheart.handlers.ConfigurableEncodingHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class ConfigurableEncodingHandler
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
ConstructorsConstructorDescriptionConfigurableEncodingHandler(io.undertow.server.HttpHandler next) Creates a new instance of ConfigurableEncodingHandler if Configuration().isForceGzipEncoding() is true requests without gzip or deflate encodingin Accept-Encoding header will be rejected -
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
-
ConfigurableEncodingHandler
public ConfigurableEncodingHandler(io.undertow.server.HttpHandler next) Creates a new instance of ConfigurableEncodingHandler if Configuration().isForceGzipEncoding() is true requests without gzip or deflate encodingin Accept-Encoding header will be rejected- Parameters:
next-
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Overrides:
handleRequestin classio.undertow.server.handlers.encoding.EncodingHandler- Throws:
Exception
-