Interface ServletStaticResourceConfiguration
- All Superinterfaces:
io.micronaut.core.util.Toggleable
@EachProperty("micronaut.router.static-resources")
@Indexed(ServletStaticResourceConfiguration.class)
public interface ServletStaticResourceConfiguration
extends io.micronaut.core.util.Toggleable
Configuration for static resources for servlet engines.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionFor Jetty based servers, allow configuring the cache control header for static resource mappings (defaults to "private,max-age=60").getPaths()
boolean
-
Field Details
-
CLASSPATH_PREFIX
- See Also:
-
FILE_PREFIX
- See Also:
-
DEFAULT_CACHE_CONTROL_HEADER
- See Also:
-
-
Method Details
-
getMapping
- Returns:
- The mapping
-
getPaths
- Returns:
- The paths
-
isEnabled
@Bindable(defaultValue="true") boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
getCacheControl
For Jetty based servers, allow configuring the cache control header for static resource mappings (defaults to "private,max-age=60").- Returns:
- The cache control header
- Since:
- 4.0.4
-