Class Encoding
java.lang.Object
org.springframework.boot.web.servlet.server.Encoding
Configuration properties for server HTTP encoding.
- Since:
- 2.3.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type of HTTP message to consider for encoding configuration. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Charset
Default HTTP encoding for Servlet applications. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isForce()
boolean
boolean
void
setCharset
(Charset charset) void
setForce
(boolean force) void
setForceRequest
(boolean forceRequest) void
setForceResponse
(boolean forceResponse) void
setMapping
(Map<Locale, Charset> mapping) boolean
shouldForce
(Encoding.Type type)
-
Field Details
-
DEFAULT_CHARSET
Default HTTP encoding for Servlet applications.
-
-
Constructor Details
-
Encoding
public Encoding()
-
-
Method Details
-
getCharset
-
setCharset
-
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
-
setMapping
-
shouldForce
-