@ConfigurationProperties(value="netty.responses.file") public class FileTypeHandlerConfiguration extends java.lang.Object
FileTypeHandler.| Modifier and Type | Class and Description |
|---|---|
static class |
FileTypeHandlerConfiguration.CacheControlConfiguration
Configuration for the Cache-Control header.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CACHESECONDS
The default cache seconds.
|
| Constructor and Description |
|---|
FileTypeHandlerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
FileTypeHandlerConfiguration.CacheControlConfiguration |
getCacheControl() |
int |
getCacheSeconds() |
void |
setCacheControl(FileTypeHandlerConfiguration.CacheControlConfiguration cacheControl)
Sets the cache control configuration.
|
void |
setCacheSeconds(int cacheSeconds)
Cache Seconds.
|
public static final int DEFAULT_CACHESECONDS
public int getCacheSeconds()
public void setCacheSeconds(int cacheSeconds)
cacheSeconds - cache secondspublic FileTypeHandlerConfiguration.CacheControlConfiguration getCacheControl()
public void setCacheControl(FileTypeHandlerConfiguration.CacheControlConfiguration cacheControl)
cacheControl - The cache control configuration