org.riotfamily.cachius.spring
Interface Compressible

All Known Implementing Classes:
AbstractMinifyController, AbstractResourceController, ButtonStylesheetController, CssTemplateController, JoiningResourceController, MinifyCssController, MinifyScriptController, ResourceController, Txt2ImgController

public interface Compressible

Interface that can be implemented by controllers that deliver compressible content.

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]
See Also:
Best Practices for Speeding Up Your Web Site

Method Summary
 boolean gzipResponse(HttpServletRequest request)
          Returns whether the response should be gzipped.
 

Method Detail

gzipResponse

boolean gzipResponse(HttpServletRequest request)
Returns whether the response should be gzipped. Implementors will usually return true, unless they serve multiple content types which and not all of them are eligible for compression. They don't have to check whether the client supports gzip compression as all compatibility checks are done by Cachius internally.