public class StaticFilesConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static StaticFilesConfiguration |
servletInstance |
| Constructor and Description |
|---|
StaticFilesConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all static file configuration
|
void |
configure(String folder)
Configures location for static resources
|
void |
configureExternal(String folder)
Configures location for static resources
|
boolean |
consume(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse) |
static StaticFilesConfiguration |
create() |
void |
putCustomHeader(String key,
String value) |
void |
putCustomHeaders(Map<String,String> headers) |
void |
setExpireTimeSeconds(long expireTimeSeconds) |
public static StaticFilesConfiguration servletInstance
public boolean consume(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws IOException
IOExceptionpublic void clear()
public void configure(String folder)
folder - the locationpublic void configureExternal(String folder)
folder - the locationpublic static StaticFilesConfiguration create()
public void setExpireTimeSeconds(long expireTimeSeconds)
Copyright © 2016. All rights reserved.