org.springframework.boot.web.server

Class Compression



  • public class Compression
    extends Object
    Simple server-independent abstraction for compression configuration.
    Since:
    2.0.0
    Author:
    Ivan Sopov, Andy Wilkinson
    • Constructor Detail

      • Compression

        public Compression()
    • Method Detail

      • getEnabled

        public boolean getEnabled()
      • setEnabled

        public void setEnabled(boolean enabled)
      • getMimeTypes

        public String[] getMimeTypes()
      • setMimeTypes

        public void setMimeTypes(String[] mimeTypes)
      • getMinResponseSize

        public int getMinResponseSize()
      • setMinResponseSize

        public void setMinResponseSize(int minSize)
      • getExcludedUserAgents

        public String[] getExcludedUserAgents()
      • setExcludedUserAgents

        public void setExcludedUserAgents(String[] excludedUserAgents)