Class FileTypeHandlerConfiguration

java.lang.Object
io.micronaut.http.server.netty.types.files.FileTypeHandlerConfiguration

@ConfigurationProperties("netty.responses.file") @Deprecated public class FileTypeHandlerConfiguration extends Object
Deprecated.
Allows configuration of properties for the FileTypeHandler.
Since:
1.0
Author:
James Kleeh
  • Field Details

    • DEFAULT_CACHESECONDS

      public static final int DEFAULT_CACHESECONDS
      Deprecated.
      The default cache seconds.
      See Also:
  • Constructor Details

    • FileTypeHandlerConfiguration

      public FileTypeHandlerConfiguration()
      Deprecated.
  • Method Details

    • getCacheSeconds

      public int getCacheSeconds()
      Deprecated.
      Returns:
      the cache seconds
    • setCacheSeconds

      public void setCacheSeconds(int cacheSeconds)
      Deprecated.
      Cache Seconds. Default value (60).
      Parameters:
      cacheSeconds - cache seconds
    • getCacheControl

      Deprecated.
      Returns:
      The cache control configuration
    • setCacheControl

      public void setCacheControl(FileTypeHandlerConfiguration.CacheControlConfiguration cacheControl)
      Deprecated.
      Sets the cache control configuration.
      Parameters:
      cacheControl - The cache control configuration