Package org.spincast.plugins.undertow
Class GzipCheckerHandlerDefault
java.lang.Object
org.spincast.plugins.undertow.GzipCheckerHandlerDefault
- All Implemented Interfaces:
io.undertow.server.HttpHandler
,GzipCheckerHandler
-
Constructor Summary
ConstructorDescriptionGzipCheckerHandlerDefault
(io.undertow.server.HttpHandler nextHandler, String specificTargetFilePath, SpincastUtils spincastUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.undertow.server.handlers.encoding.EncodingHandler
protected io.undertow.server.HttpHandler
protected String
getResponseContentType
(io.undertow.server.HttpServerExchange exchange) protected String
protected SpincastUtils
void
handleRequest
(io.undertow.server.HttpServerExchange exchange) protected boolean
isContentTypeToSkipGziping
(io.undertow.server.HttpServerExchange exchange)
-
Constructor Details
-
GzipCheckerHandlerDefault
public GzipCheckerHandlerDefault(io.undertow.server.HttpHandler nextHandler, @Nullable String specificTargetFilePath, SpincastUtils spincastUtils)
-
-
Method Details
-
getNextHandler
protected io.undertow.server.HttpHandler getNextHandler() -
getSpincastUtils
-
getSpecificTargetFilePath
-
getGzipNoNextHandler
protected io.undertow.server.handlers.encoding.EncodingHandler getGzipNoNextHandler() -
handleRequest
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Throws:
Exception
-
isContentTypeToSkipGziping
protected boolean isContentTypeToSkipGziping(io.undertow.server.HttpServerExchange exchange) -
getResponseContentType
-