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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @NonNull public @io.micronaut.core.annotation.NonNull boolean getPublic()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      True if the cache control should be public