类 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>
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Charset
     

    从类继承的字段 org.springframework.http.converter.AbstractHttpMessageConverter

    logger
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected List<Charset>
    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)
     

    从类继承的方法 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

      public static final Charset DEFAULT_CHARSET
  • 构造器详细资料

    • HttpCharsetConvert

      public HttpCharsetConvert()
  • 方法详细资料

    • setWriteAcceptCharset

      public void setWriteAcceptCharset(boolean writeAcceptCharset)
      Indicates whether the Accept-Charset should be written to any outgoing request.

      Default is true.

      参数:
      writeAcceptCharset - writeAcceptCharset
    • supports

      public boolean supports(Class<?> clazz)
      指定者:
      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

      protected Long getContentLength(String s, org.springframework.http.MediaType contentType)
      覆盖:
      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

      protected List<Charset> getAcceptedCharsets()
      Return the list of supported Charset.

      By default, returns Charset.availableCharsets(). Can be overridden in subclasses.

      返回:
      the list of accepted charsets