Class SpincastResourceHandlerDefault

java.lang.Object
io.undertow.server.handlers.resource.ResourceHandler
org.spincast.plugins.undertow.SpincastResourceHandlerDefault
All Implemented Interfaces:
io.undertow.server.HttpHandler, SpincastResourceHandler

public class SpincastResourceHandlerDefault extends io.undertow.server.handlers.resource.ResourceHandler implements SpincastResourceHandler
Spincast's custom ResourceHandler for Undertow.
  • Constructor Details

  • Method Details

    • getNext

      protected io.undertow.server.HttpHandler getNext()
    • getSpincastUtils

      protected SpincastUtils getSpincastUtils()
    • getSpincastConfig

      protected SpincastConfig getSpincastConfig()
    • getStaticResource

      protected StaticResource<?> getStaticResource()
    • getSpincastRoutingUtils

      protected SpincastRoutingUtils getSpincastRoutingUtils()
    • setCacheTime

      public io.undertow.server.handlers.resource.ResourceHandler setCacheTime(Integer cacheTime)
      Overrides:
      setCacheTime in class io.undertow.server.handlers.resource.ResourceHandler
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Overrides:
      handleRequest in class io.undertow.server.handlers.resource.ResourceHandler
      Throws:
      Exception
    • addContentTypeHeader

      protected void addContentTypeHeader(io.undertow.server.HttpServerExchange exchange)
    • addCacheHeaders

      protected void addCacheHeaders(io.undertow.server.HttpServerExchange exchange)
      Adds cache headers if required.