public class PojoToJsonMessageConverter extends AbstractFromMessageConverter
MessageConverter
to convert a Java object to a JSON Stringlogger, targetMimeTypes
Constructor and Description |
---|
PojoToJsonMessageConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertFromInternal(org.springframework.messaging.Message<?> message,
java.lang.Class<?> targetClass) |
protected java.lang.Class<?>[] |
supportedPayloadTypes()
Subclasses implement this to specify supported payload types
|
protected java.lang.Class<?>[] |
supportedTargetTypes()
Subclasses implement this to specify supported target types
|
buildConvertedMessage, canConvertFrom, canConvertTo, convertToInternal, setContentTypeResolver, supports, supportsPayloadType, supportsTargetMimeType
fromMessage, getContentTypeResolver, getDefaultContentType, getMimeType, getSerializedPayloadClass, getSupportedMimeTypes, isStrictContentTypeMatch, setSerializedPayloadClass, setStrictContentTypeMatch, supportsMimeType, toMessage
protected java.lang.Class<?>[] supportedTargetTypes()
AbstractFromMessageConverter
supportedTargetTypes
in class AbstractFromMessageConverter
protected java.lang.Class<?>[] supportedPayloadTypes()
AbstractFromMessageConverter
supportedPayloadTypes
in class AbstractFromMessageConverter
public java.lang.Object convertFromInternal(org.springframework.messaging.Message<?> message, java.lang.Class<?> targetClass)
convertFromInternal
in class org.springframework.messaging.converter.AbstractMessageConverter