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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.The default cache seconds. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.int
Deprecated.void
Deprecated.Sets the cache control configuration.void
setCacheSeconds
(int cacheSeconds) Deprecated.Cache Seconds.
-
Field Details
-
DEFAULT_CACHESECONDS
public static final int DEFAULT_CACHESECONDSDeprecated.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
Deprecated.Sets the cache control configuration.- Parameters:
cacheControl
- The cache control configuration
-