org.springframework.boot.web.servlet.server

Class Encoding

  • java.lang.Object
    • org.springframework.boot.web.servlet.server.Encoding


  • public class Encoding
    extends java.lang.Object
    Configuration properties for server HTTP encoding.
    Since:
    2.3.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Encoding.Type
      Type of HTTP message to consider for encoding configuration.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.nio.charset.Charset DEFAULT_CHARSET
      Default HTTP encoding for Servlet applications.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Encoding() 
    • Field Detail

      • DEFAULT_CHARSET

        public static final java.nio.charset.Charset DEFAULT_CHARSET
        Default HTTP encoding for Servlet applications.
    • Constructor Detail

      • Encoding

        public Encoding()
    • Method Detail

      • getCharset

        public java.nio.charset.Charset getCharset()
      • setCharset

        public void setCharset(java.nio.charset.Charset charset)
      • isForce

        public boolean isForce()
      • setForce

        public void setForce(boolean force)
      • isForceRequest

        public boolean isForceRequest()
      • setForceRequest

        public void setForceRequest(boolean forceRequest)
      • isForceResponse

        public boolean isForceResponse()
      • setForceResponse

        public void setForceResponse(boolean forceResponse)
      • getMapping

        public java.util.Map<java.util.Locale,java.nio.charset.Charset> getMapping()
      • setMapping

        public void setMapping(java.util.Map<java.util.Locale,java.nio.charset.Charset> mapping)