public class CacheBusterRemovalHandler extends Object implements ICacheBusterRemovalHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL |
| Constructor and Description |
|---|
CacheBusterRemovalHandler(io.undertow.server.HttpHandler next,
ISpincastUtils spincastUtils,
ISpincastUndertowUtils spincastUndertowUtils) |
| Modifier and Type | Method and Description |
|---|---|
protected io.undertow.server.HttpHandler |
getNext() |
String |
getOrigninalRequestUrlWithPotentialCacheBusters(io.undertow.server.HttpServerExchange exchange)
Get the original URL of the request potentially containing cache
busters.
|
protected ISpincastUndertowUtils |
getSpincastUndertowUtils() |
protected ISpincastUtils |
getSpincastUtils() |
void |
handleRequest(io.undertow.server.HttpServerExchange exchange) |
protected void |
keepOriginalRequestUrlInformation(io.undertow.server.HttpServerExchange exchange) |
protected void |
removeCacheBusterCode(io.undertow.server.HttpServerExchange exchange) |
public static final String EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL
public CacheBusterRemovalHandler(io.undertow.server.HttpHandler next,
ISpincastUtils spincastUtils,
ISpincastUndertowUtils spincastUndertowUtils)
protected io.undertow.server.HttpHandler getNext()
protected ISpincastUtils getSpincastUtils()
protected ISpincastUndertowUtils getSpincastUndertowUtils()
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerExceptionprotected void keepOriginalRequestUrlInformation(io.undertow.server.HttpServerExchange exchange)
public String getOrigninalRequestUrlWithPotentialCacheBusters(io.undertow.server.HttpServerExchange exchange)
ICacheBusterRemovalHandlergetOrigninalRequestUrlWithPotentialCacheBusters in interface ICacheBusterRemovalHandlerprotected void removeCacheBusterCode(io.undertow.server.HttpServerExchange exchange)
Copyright © 2016. All rights reserved.