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

public class Encoding extends Object
Configuration properties for server HTTP encoding.
Since:
2.3.0
Author:
Phillip Webb, Stephane Nicoll, Brian Clozel
  • Field Details

    • DEFAULT_CHARSET

      public static final Charset DEFAULT_CHARSET
      Default HTTP encoding for Servlet applications.
  • Constructor Details

    • Encoding

      public Encoding()
  • Method Details

    • getCharset

      public Charset getCharset()
    • setCharset

      public void setCharset(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 Map<Locale,Charset> getMapping()
    • setMapping

      public void setMapping(Map<Locale,Charset> mapping)
    • shouldForce

      public boolean shouldForce(Encoding.Type type)