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
ConstructorsConstructorDescriptionGzipCheckerHandlerDefault(io.undertow.server.HttpHandler nextHandler, String specificTargetFilePath, SpincastUtils spincastUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.undertow.server.handlers.encoding.EncodingHandlerprotected io.undertow.server.HttpHandlerprotected StringgetResponseContentType(io.undertow.server.HttpServerExchange exchange) protected Stringprotected SpincastUtilsvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) protected booleanisContentTypeToSkipGziping(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:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
isContentTypeToSkipGziping
protected boolean isContentTypeToSkipGziping(io.undertow.server.HttpServerExchange exchange) -
getResponseContentType
-