类 HttpCharsetConvert
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<String>
org.anyline.plugin.springmvc.HttpCharsetConvert
- 所有已实现的接口:
org.springframework.http.converter.HttpMessageConverter<String>
public class HttpCharsetConvert
extends org.springframework.http.converter.AbstractHttpMessageConverter<String>
-
字段概要
字段从类继承的字段 org.springframework.http.converter.AbstractHttpMessageConverter
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Return the list of supportedCharset.protected LonggetContentLength(String s, org.springframework.http.MediaType contentType) protected StringreadInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage) voidsetWriteAcceptCharset(boolean writeAcceptCharset) Indicates whether theAccept-Charsetshould be written to any outgoing request.booleanprotected voidwriteInternal(String s, org.springframework.http.HttpOutputMessage outputMessage) 从类继承的方法 org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
字段详细资料
-
DEFAULT_CHARSET
-
-
构造器详细资料
-
HttpCharsetConvert
public HttpCharsetConvert()
-
-
方法详细资料
-
setWriteAcceptCharset
public void setWriteAcceptCharset(boolean writeAcceptCharset) Indicates whether theAccept-Charsetshould be written to any outgoing request.Default is
true.- 参数:
writeAcceptCharset- writeAcceptCharset
-
supports
- 指定者:
supports在类中org.springframework.http.converter.AbstractHttpMessageConverter<String>
-
readInternal
protected String readInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException - 指定者:
readInternal在类中org.springframework.http.converter.AbstractHttpMessageConverter<String>- 抛出:
IOException
-
getContentLength
- 覆盖:
getContentLength在类中org.springframework.http.converter.AbstractHttpMessageConverter<String>
-
writeInternal
protected void writeInternal(String s, org.springframework.http.HttpOutputMessage outputMessage) throws IOException - 指定者:
writeInternal在类中org.springframework.http.converter.AbstractHttpMessageConverter<String>- 抛出:
IOException
-
getAcceptedCharsets
Return the list of supportedCharset.By default, returns
Charset.availableCharsets(). Can be overridden in subclasses.- 返回:
- the list of accepted charsets
-