
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 1.14.0 API)
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.
-
-
Constructor Summary
Constructors
Constructor and 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
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and 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
getSpincastConfig()
protected SpincastRoutingUtils
getSpincastRoutingUtils()
protected SpincastUtils
getSpincastUtils()
protected StaticResource<?>
getStaticResource()
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 Detail
-
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 Detail
-
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.
Copyright © 2019. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy