| 限定符和类型 | 字段和说明 |
|---|---|
static Charset |
DEFAULT_CHARSET |
| 构造器和说明 |
|---|
HttpCharsetConvert() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Charset> |
getAcceptedCharsets()
Return the list of supported
Charset. |
protected Long |
getContentLength(String s,
org.springframework.http.MediaType contentType) |
protected String |
readInternal(Class clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setWriteAcceptCharset(boolean writeAcceptCharset)
Indicates whether the
Accept-Charset should be written to any outgoing request. |
boolean |
supports(Class<?> clazz) |
protected void |
writeInternal(String s,
org.springframework.http.HttpOutputMessage outputMessage) |
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writepublic static final Charset DEFAULT_CHARSET
public void setWriteAcceptCharset(boolean writeAcceptCharset)
Accept-Charset should be written to any outgoing request.
Default is true.
writeAcceptCharset - writeAcceptCharsetpublic boolean supports(Class<?> clazz)
supports 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<String>protected String readInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException
readInternal 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<String>IOExceptionprotected Long getContentLength(String s, org.springframework.http.MediaType contentType)
getContentLength 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<String>protected void writeInternal(String s, org.springframework.http.HttpOutputMessage outputMessage) throws IOException
writeInternal 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<String>IOExceptionprotected List<Charset> getAcceptedCharsets()
Charset.
By default, returns Charset.availableCharsets(). Can be overridden in subclasses.
Copyright © 2022. All rights reserved.