public.javadoc.org.spincast.plugins.undertow.CacheBusterRemovalHandlerDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
CacheBusterRemovalHandlerDefault (org.spincast:spincast-framework 1.14.0 API)
org.spincast.plugins.undertow
Class CacheBusterRemovalHandlerDefault
- java.lang.Object
-
- org.spincast.plugins.undertow.CacheBusterRemovalHandlerDefault
-
- All Implemented Interfaces:
- io.undertow.server.HttpHandler, CacheBusterRemovalHandler
public class CacheBusterRemovalHandlerDefault
extends Object
implements CacheBusterRemovalHandler
Handler to remove cache buster codes from the request URL.
-
-
Field Summary
Fields
Modifier and Type
Field and Description
static String
EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL
-
Constructor Summary
Constructors
Constructor and Description
CacheBusterRemovalHandlerDefault(io.undertow.server.HttpHandler next,
SpincastUtils spincastUtils,
SpincastUndertowUtils spincastUndertowUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods
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 SpincastUndertowUtils
getSpincastUndertowUtils()
protected SpincastUtils
getSpincastUtils()
void
handleRequest(io.undertow.server.HttpServerExchange exchange)
protected void
keepOriginalRequestUrlInformation(io.undertow.server.HttpServerExchange exchange)
protected void
removeCacheBusterCode(io.undertow.server.HttpServerExchange exchange)
-
-
Field Detail
-
EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL
public static final String EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL
-
Constructor Detail
-
CacheBusterRemovalHandlerDefault
public CacheBusterRemovalHandlerDefault(io.undertow.server.HttpHandler next,
SpincastUtils spincastUtils,
SpincastUndertowUtils spincastUndertowUtils)
-
Method Detail
-
getNext
protected io.undertow.server.HttpHandler getNext()
-
getSpincastUtils
protected SpincastUtils getSpincastUtils()
-
getSpincastUndertowUtils
protected SpincastUndertowUtils getSpincastUndertowUtils()
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
- Specified by:
handleRequest
in interface io.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: CacheBusterRemovalHandler
Get the original URL of the request potentially containing cache
busters. The URL is not decoded.
- Specified by:
getOrigninalRequestUrlWithPotentialCacheBusters
in interface CacheBusterRemovalHandler
-
removeCacheBusterCode
protected void removeCacheBusterCode(io.undertow.server.HttpServerExchange exchange)
Copyright © 2019. All rights reserved.