Class NettyHttpServerConfiguration.FileTypeHandlerConfiguration

java.lang.Object
io.micronaut.http.server.netty.configuration.NettyHttpServerConfiguration.FileTypeHandlerConfiguration
Enclosing class:
NettyHttpServerConfiguration

@Deprecated(since="4.8.0", forRemoval=true) @ConfigurationProperties("responses.file") public static class NettyHttpServerConfiguration.FileTypeHandlerConfiguration extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Allows configuration of properties for the io.micronaut.http.server.netty.body.AbstractFileBodyWriter.
Since:
3.1.0
Author:
James Kleeh, graemerocher
  • Field Details

    • DEFAULT_CACHESECONDS

      public static final int DEFAULT_CACHESECONDS
      Deprecated, for removal: This API element is subject to removal in a future version.
      The default cache seconds.
      See Also:
  • Constructor Details

    • FileTypeHandlerConfiguration

      public FileTypeHandlerConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
    • FileTypeHandlerConfiguration

      @Deprecated @Inject public FileTypeHandlerConfiguration(@Nullable @Property(name="netty.responses.file.cache-seconds") @Nullable Integer cacheSeconds, @Nullable @Property(name="netty.responses.file.cache-control.public") @Nullable Boolean isPublic)
      Deprecated.
      Deprecated constructor.
      Parameters:
      cacheSeconds - Deprecated constructor parameter
      isPublic - Deprecated constructor parameter
  • Method Details

    • getCacheSeconds

      public int getCacheSeconds()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the cache seconds
    • setCacheSeconds

      public void setCacheSeconds(int cacheSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Cache Seconds. Default value (60).
      Parameters:
      cacheSeconds - cache seconds
    • getCacheControl

      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The cache control configuration
    • setCacheControl

      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the cache control configuration.
      Parameters:
      cacheControl - The cache control configuration