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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.The default cache seconds. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Default constructor.FileTypeHandlerConfiguration
(@Nullable Integer cacheSeconds, @Nullable Boolean isPublic) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.void
setCacheControl
(NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration cacheControl) Deprecated, for removal: This API element is subject to removal in a future version.Sets the cache control configuration.void
setCacheSeconds
(int cacheSeconds) Deprecated, for removal: This API element is subject to removal in a future version.Cache Seconds.
-
Field Details
-
DEFAULT_CACHESECONDS
public static final int DEFAULT_CACHESECONDSDeprecated, 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 parameterisPublic
- 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
public NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration getCacheControl()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The cache control configuration
-
setCacheControl
public void setCacheControl(NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration cacheControl) 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
-
HttpServerConfiguration.FileTypeHandlerConfiguration