Package org.spincast.plugins.undertow
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.undertow.server.handlers.resource.ResourceHandler
io.undertow.server.handlers.resource.ResourceHandler.Builder
-
Constructor Summary
ConstructorDescriptionSpincastResourceHandlerDefault
(io.undertow.server.handlers.resource.ResourceManager resourceManager, StaticResource<?> staticResource, io.undertow.server.HttpHandler next, SpincastUtils spincastUtils, SpincastConfig spincastConfig, SpincastRoutingUtils spincastRoutingUtils) SpincastResourceHandlerDefault
(io.undertow.server.handlers.resource.ResourceManager resourceManager, StaticResource<?> staticResource, SpincastUtils spincastUtils, SpincastConfig spincastConfig, SpincastRoutingUtils spincastRoutingUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCacheHeaders
(io.undertow.server.HttpServerExchange exchange) Adds cache headers if required.protected void
addContentTypeHeader
(io.undertow.server.HttpServerExchange exchange) protected io.undertow.server.HttpHandler
getNext()
protected SpincastConfig
protected SpincastRoutingUtils
protected SpincastUtils
protected StaticResource<?>
void
handleRequest
(io.undertow.server.HttpServerExchange exchange) io.undertow.server.handlers.resource.ResourceHandler
setCacheTime
(Integer cacheTime) Methods inherited from class io.undertow.server.handlers.resource.ResourceHandler
addWelcomeFiles, getAllowed, getCachable, getCacheTime, getContentEncodedResourceManager, getMimeMappings, getResourceManager, getResourceSupplier, isCanonicalizePaths, isDirectoryListingEnabled, setAllowed, setCachable, setCanonicalizePaths, setContentEncodedResourceManager, setDirectoryListingEnabled, setMimeMappings, setResourceManager, setResourceSupplier, setWelcomeFiles
-
Constructor Details
-
SpincastResourceHandlerDefault
public SpincastResourceHandlerDefault(io.undertow.server.handlers.resource.ResourceManager resourceManager, StaticResource<?> staticResource, SpincastUtils spincastUtils, SpincastConfig spincastConfig, SpincastRoutingUtils spincastRoutingUtils) -
SpincastResourceHandlerDefault
public SpincastResourceHandlerDefault(io.undertow.server.handlers.resource.ResourceManager resourceManager, StaticResource<?> staticResource, io.undertow.server.HttpHandler next, SpincastUtils spincastUtils, SpincastConfig spincastConfig, SpincastRoutingUtils spincastRoutingUtils)
-
-
Method Details
-
getNext
protected io.undertow.server.HttpHandler getNext() -
getSpincastUtils
-
getSpincastConfig
-
getStaticResource
-
getSpincastRoutingUtils
-
setCacheTime
- Overrides:
setCacheTime
in classio.undertow.server.handlers.resource.ResourceHandler
-
handleRequest
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Overrides:
handleRequest
in classio.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.
-