public class ResourceServlet
extends org.springframework.web.servlet.HttpServletBean
Constructor and Description |
---|
ResourceServlet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
protected long |
getLastModified(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
void |
setAllowedResourcePaths(java.lang.String allowedResourcePaths)
Deprecated.
Set allowed resources as an comma separated String of URL patterns, e.g.
|
void |
setCacheTimeout(int cacheTimeout)
Deprecated.
Set the number of seconds resources should be cached by the client.
|
void |
setCompressedMimeTypes(java.lang.String compressedMimeTypes)
Deprecated.
Set comma separated MIME types that should have gzip compression applied.
|
void |
setGzipEnabled(boolean gzipEnabled)
Deprecated.
Set whether to apply gzip compression to resources if the requesting client supports it.
|
void |
setJarPathPrefix(java.lang.String jarPathPrefix)
Deprecated.
Set the default path prefix to apply to resources being served from jar files.
|
addRequiredProperty, createEnvironment, getEnvironment, getServletContext, getServletName, init, initBeanWrapper, initServletBean, setEnvironment
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected long getLastModified(javax.servlet.http.HttpServletRequest request)
getLastModified
in class javax.servlet.http.HttpServlet
public void setGzipEnabled(boolean gzipEnabled)
public void setAllowedResourcePaths(java.lang.String allowedResourcePaths)
AntPathMatcher
public void setCompressedMimeTypes(java.lang.String compressedMimeTypes)
AntPathMatcher
public void setJarPathPrefix(java.lang.String jarPathPrefix)
public void setCacheTimeout(int cacheTimeout)