org.springframework.web.servlet.resource

Class GzipResourceResolver

  • All Implemented Interfaces:
    ResourceResolver

    Deprecated. 
    as of 5.1, in favor of using EncodedResourceResolver

    @Deprecated
    public class GzipResourceResolver
    extends AbstractResourceResolver
    A ResourceResolver 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