Example usage for Java org.springframework.http.converter AbstractHttpMessageConverter fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | canWrite(Class> clazz, @Nullable MediaType mediaType) This implementation checks if the given class is #supports(Class) supported , and if the #getSupportedMediaTypes() supported media types MediaType#includes(MediaType) include the given media type. |
Charset | getDefaultCharset() Return the default character set, if any. |
void | setDefaultCharset(@Nullable Charset defaultCharset) Set the default character set, if any. |
void | write(final T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) This implementation sets the default headers by calling #addDefaultHeaders , and then calls #writeInternal . |