Package org.spincast.plugins.undertow
Class CacheBusterRemovalHandlerDefault
java.lang.Object
org.spincast.plugins.undertow.CacheBusterRemovalHandlerDefault
- All Implemented Interfaces:
io.undertow.server.HttpHandler,CacheBusterRemovalHandler
Handler to remove cache buster codes from the request URL.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheBusterRemovalHandlerDefault(io.undertow.server.HttpHandler next, SpincastUtils spincastUtils, SpincastUndertowUtils spincastUndertowUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.undertow.server.HttpHandlergetNext()getOrigninalRequestUrlWithPotentialCacheBusters(io.undertow.server.HttpServerExchange exchange) Get the original URL of the request potentially containing cache busters.protected SpincastUndertowUtilsprotected SpincastUtilsvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) protected voidkeepOriginalRequestUrlInformation(io.undertow.server.HttpServerExchange exchange) protected voidremoveCacheBusterCode(io.undertow.server.HttpServerExchange exchange)
-
Field Details
-
EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL
-
-
Constructor Details
-
CacheBusterRemovalHandlerDefault
public CacheBusterRemovalHandlerDefault(io.undertow.server.HttpHandler next, SpincastUtils spincastUtils, SpincastUndertowUtils spincastUndertowUtils)
-
-
Method Details
-
getNext
protected io.undertow.server.HttpHandler getNext() -
getSpincastUtils
-
getSpincastUndertowUtils
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
keepOriginalRequestUrlInformation
protected void keepOriginalRequestUrlInformation(io.undertow.server.HttpServerExchange exchange) -
getOrigninalRequestUrlWithPotentialCacheBusters
public String getOrigninalRequestUrlWithPotentialCacheBusters(io.undertow.server.HttpServerExchange exchange) Description copied from interface:CacheBusterRemovalHandlerGet the original URL of the request potentially containing cache busters. The URL is not decoded.- Specified by:
getOrigninalRequestUrlWithPotentialCacheBustersin interfaceCacheBusterRemovalHandler
-
removeCacheBusterCode
protected void removeCacheBusterCode(io.undertow.server.HttpServerExchange exchange)
-