Class NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration
java.lang.Object
io.micronaut.http.server.netty.configuration.NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration
- Enclosing class:
- NettyHttpServerConfiguration.FileTypeHandlerConfiguration
@Deprecated(since="4.8.0",
forRemoval=true)
@ConfigurationProperties("cache-control")
public static class NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Configuration for the Cache-Control header.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescription@io.micronaut.core.annotation.NonNull boolean
Deprecated, for removal: This API element is subject to removal in a future version.void
setPublic
(boolean publicCache) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether the cache control is public.
-
Constructor Details
-
CacheControlConfiguration
public CacheControlConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setPublic
public void setPublic(boolean publicCache) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether the cache control is public. Default value (false)- Parameters:
publicCache
- Public cache value
-
getPublic
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- True if the cache control should be public
-
HttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration