Class NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration

  • Enclosing class:
    NettyHttpServerConfiguration.FileTypeHandlerConfiguration

    @ConfigurationProperties("cache-control")
    public static class NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration
    extends java.lang.Object
    Configuration for the Cache-Control header.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getPublic()  
      void setPublic​(boolean publicCache)
      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 Detail

      • CacheControlConfiguration

        public CacheControlConfiguration()
    • Method Detail

      • setPublic

        public void setPublic​(boolean publicCache)
        Sets whether the cache control is public. Default value (false)
        Parameters:
        publicCache - Public cache value
      • getPublic

        @NonNull
        public boolean getPublic()
        Returns:
        True if the cache control should be public