- canRead
Returns true if any of the #setSupportedMediaTypes(List) media types
MediaType#includes(MediaType) t
- canWrite
Returns true if the given media type includes any of the
#setSupportedMediaTypes(List).
- setSupportedMediaTypes
Set the list of MediaType objects supported by this converter.
- getContentLength
Returns the content length for the given type.By default, this returns null,
meaning that the conten
- getDefaultContentType
Returns the default content type for the given type. Called when #writeis
invoked without a specifie
- getSupportedMediaTypes
- supports
Indicates whether the given class is supported by this converter.
- writeInternal
Abstract template method that writes the actual body. Invoked from #write.
- addDefaultHeaders
Add default headers to the output message.This implementation delegates to
#getDefaultContentType(Ob
- getDefaultCharset
Return the default character set, if any.
- setDefaultCharset
Set the default character set, if any.
- write
This implementation sets the default headers by calling #addDefaultHeaders, and
then calls #writeInt