| Modifier and Type | Field and Description |
|---|---|
static Charset |
DEFAULT_CHARSET |
| Constructor and Description |
|---|
StringHttpMessageConverterExtended() |
StringHttpMessageConverterExtended(Charset defaultCharset) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final Charset DEFAULT_CHARSET
public StringHttpMessageConverterExtended()
public StringHttpMessageConverterExtended(Charset defaultCharset)
public void setWriteAcceptCharset(boolean writeAcceptCharset)
Accept-Charset should be written to any outgoing request.
Default is true.
public boolean supports(Class<?> clazz)
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<String>protected String readInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException
readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<String>IOExceptionprotected Long getContentLength(String s, org.springframework.http.MediaType contentType)
getContentLength in class org.springframework.http.converter.AbstractHttpMessageConverter<String>protected void writeInternal(String s, org.springframework.http.HttpOutputMessage outputMessage) throws IOException
writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<String>IOExceptionprotected List<Charset> getAcceptedCharsets()
Charset.
By default, returns Charset.availableCharsets(). Can be overridden in subclasses.
Copyright © 2014 CrafterCMS. All Rights Reserved.