public class ResourceServlet
extends org.springframework.web.servlet.HttpServletBean
Constructor and Description |
---|
ResourceServlet() |
Modifier and Type | Method and Description |
---|---|
void |
setAllowedResourcePaths(String allowedResourcePaths)
Set allowed resources as an comma separated String of URL patterns, e.g.
|
void |
setCacheTimeout(int cacheTimeout)
Set the number of seconds resources should be cached by the client.
|
void |
setCompressedMimeTypes(String compressedMimeTypes)
Set comma separated MIME types that should have gzip compression applied.
|
void |
setGzipEnabled(boolean gzipEnabled)
Set whether to apply gzip compression to resources if the requesting client supports it.
|
void |
setJarPathPrefix(String jarPathPrefix)
Set the default path prefix to apply to resources being served from jar files.
|
getEnvironment, getServletContext, getServletName, init, setEnvironment
public void setGzipEnabled(boolean gzipEnabled)
public void setAllowedResourcePaths(String allowedResourcePaths)
AntPathMatcher
public void setCompressedMimeTypes(String compressedMimeTypes)
AntPathMatcher
public void setJarPathPrefix(String jarPathPrefix)
public void setCacheTimeout(int cacheTimeout)