Interface ServletStaticResourceConfiguration
- All Superinterfaces:
io.micronaut.core.util.Toggleable
@Deprecated(forRemoval=true,
since="5.2.0")
public interface ServletStaticResourceConfiguration
extends io.micronaut.core.util.Toggleable
Deprecated, for removal: This API element is subject to removal in a future version.
Configuration for static resources for servlet engines.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.For Jetty based servers, allow configuring the cache control header for static resource mappings (defaults to "private,max-age=60").Deprecated, for removal: This API element is subject to removal in a future version.getPaths()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
CLASSPATH_PREFIX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
FILE_PREFIX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEFAULT_CACHE_CONTROL_HEADER
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
getMapping
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The mapping
-
getPaths
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The paths
-
isEnabled
@Bindable(defaultValue="true") boolean isEnabled()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
getCacheControl
Deprecated, for removal: This API element is subject to removal in a future version.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
-
ServletStaticResourceConfiguration
instead