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 <[email protected]>
-
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 TypeMethodDescriptionvoid
handleRequest
(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:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Overrides:
handleRequest
in classio.undertow.server.handlers.encoding.EncodingHandler
- Throws:
Exception
-