| Constructor and Description |
|---|
StaticFiles() |
| Modifier and Type | Method and Description |
|---|---|
void |
expireTime(long seconds)
Sets the expire-time for static resources
|
void |
externalLocation(String externalFolder)
Sets the external folder serving static files.
|
void |
header(String key,
String value)
Puts custom header for static resources.
|
void |
headers(Map<String,String> headers)
Puts custom headers for static resources.
|
void |
location(String folder)
Sets the folder in classpath serving static files.
|
public void location(String folder)
folder - the folder in classpath.public void externalLocation(String externalFolder)
externalFolder - the external folder serving static files.public void headers(Map<String,String> headers)
headers - the headers to set on static resourcespublic void header(String key, String value)
public void expireTime(long seconds)
seconds - the expire time in secondsCopyright © 2016. All rights reserved.