Class FileTypeHandlerConfiguration
- java.lang.Object
-
- io.micronaut.http.server.netty.types.files.FileTypeHandlerConfiguration
-
@ConfigurationProperties("netty.responses.file") @Deprecated public class FileTypeHandlerConfiguration extends java.lang.ObjectDeprecated.Allows configuration of properties for theFileTypeHandler.- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileTypeHandlerConfiguration.CacheControlConfigurationDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_CACHESECONDSDeprecated.The default cache seconds.
-
Constructor Summary
Constructors Constructor Description FileTypeHandlerConfiguration()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FileTypeHandlerConfiguration.CacheControlConfigurationgetCacheControl()Deprecated.intgetCacheSeconds()Deprecated.voidsetCacheControl(FileTypeHandlerConfiguration.CacheControlConfiguration cacheControl)Deprecated.Sets the cache control configuration.voidsetCacheSeconds(int cacheSeconds)Deprecated.Cache Seconds.
-
-
-
Field Detail
-
DEFAULT_CACHESECONDS
public static final int DEFAULT_CACHESECONDS
Deprecated.The default cache seconds.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public FileTypeHandlerConfiguration.CacheControlConfiguration 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
-
-