public.javadoc.org.spincast.plugins.undertow.SpincastResourceHandlerDefault.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.
SpincastResourceHandlerDefault (org.spincast:spincast-framework 2.1.1 API)
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
Constructor
Description
SpincastResourceHandlerDefault(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 Type
Method
Description
protected 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 class io.undertow.server.handlers.resource.ResourceHandler
-
handleRequest
- 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.