Class HttpProperties.Encoding
- java.lang.Object
- org.springframework.boot.autoconfigure.http.HttpProperties.Encoding
- Enclosing class:
- HttpProperties
public static class HttpProperties.Encoding extends Object
Configuration properties for http encoding.
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpProperties.Encoding.Type
Field Summary
Fields Modifier and Type Field Description static Charset
DEFAULT_CHARSET
Constructor Summary
Constructors Constructor Description Encoding()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Charset
getCharset()
Map<Locale,Charset>
getMapping()
boolean
isForce()
boolean
isForceRequest()
boolean
isForceResponse()
void
setCharset(Charset charset)
void
setForce(boolean force)
void
setForceRequest(boolean forceRequest)
void
setForceResponse(boolean forceResponse)
void
setMapping(Map<Locale,Charset> mapping)
boolean
shouldForce(HttpProperties.Encoding.Type type)
Field Detail
DEFAULT_CHARSET
public static final Charset DEFAULT_CHARSET
Constructor Detail
Encoding
public Encoding()
Method Detail
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(HttpProperties.Encoding.Type type)