public class Encoding
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Encoding.Type
Type of HTTP message to consider for encoding configuration.
|
Modifier and Type | Field and Description |
---|---|
static java.nio.charset.Charset |
DEFAULT_CHARSET
Default HTTP encoding for Servlet applications.
|
Constructor and Description |
---|
Encoding() |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
getCharset() |
java.util.Map<java.util.Locale,java.nio.charset.Charset> |
getMapping() |
boolean |
isForce() |
boolean |
isForceRequest() |
boolean |
isForceResponse() |
void |
setCharset(java.nio.charset.Charset charset) |
void |
setForce(boolean force) |
void |
setForceRequest(boolean forceRequest) |
void |
setForceResponse(boolean forceResponse) |
void |
setMapping(java.util.Map<java.util.Locale,java.nio.charset.Charset> mapping) |
boolean |
shouldForce(Encoding.Type type) |
public static final java.nio.charset.Charset DEFAULT_CHARSET
public java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
public boolean isForce()
public void setForce(boolean force)
public boolean isForceRequest()
public void setForceRequest(boolean forceRequest)
public boolean isForceResponse()
public void setForceResponse(boolean forceResponse)
public java.util.Map<java.util.Locale,java.nio.charset.Charset> getMapping()
public void setMapping(java.util.Map<java.util.Locale,java.nio.charset.Charset> mapping)
public boolean shouldForce(Encoding.Type type)