|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.springframework.web.servlet.HttpServletBean
org.springframework.js.resource.ResourceServlet
public class ResourceServlet
Special resource servlet for efficiently resolving and rendering static resources from within a JAR file.
Constructor Summary | |
---|---|
ResourceServlet()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.web.servlet.HttpServletBean |
---|
getServletContext, getServletName, init |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, init, log, log |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceServlet()
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |