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 Details

    • EXCHANGE_VARIABLE_ORIGINAL_REQUEST_URL

      public static final String 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

      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)