Class GzipResourceResolver
- java.lang.Object
- org.springframework.web.servlet.resource.AbstractResourceResolver
- org.springframework.web.servlet.resource.GzipResourceResolver
- All Implemented Interfaces:
ResourceResolver
@Deprecated public class GzipResourceResolver extends AbstractResourceResolver
Deprecated.as of 5.1, in favor of usingEncodedResourceResolver
AResourceResolver
that delegates to the chain to locate a resource and then attempts to find a variation with the ".gz" extension.The resolver gets involved only if the "Accept-Encoding" request header contains the value "gzip" indicating the client accepts gzipped responses.
- Since:
- 4.1
- Author:
- Jeremy Grelle, Rossen Stoyanchev, Sam Brannen
Field Summary
Fields inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver
logger
Constructor Summary
Constructors Constructor Description GzipResourceResolver()
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Resource
resolveResourceInternal(HttpServletRequest request, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain)
Deprecated.protected String
resolveUrlPathInternal(String resourceUrlPath, List<? extends Resource> locations, ResourceResolverChain chain)
Deprecated.Methods inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver
resolveResource, resolveUrlPath
Constructor Detail
GzipResourceResolver
public GzipResourceResolver()
Deprecated.
Method Detail
resolveResourceInternal
protected Resource resolveResourceInternal(@Nullable HttpServletRequest request, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain)
Deprecated.- Specified by:
resolveResourceInternal
in classAbstractResourceResolver
resolveUrlPathInternal
protected String resolveUrlPathInternal(String resourceUrlPath, List<? extends Resource> locations, ResourceResolverChain chain)
Deprecated.- Specified by:
resolveUrlPathInternal
in classAbstractResourceResolver