public class MessageConvertingTcpMessageMapper extends TcpMessageMapper
logger
Constructor and Description |
---|
MessageConvertingTcpMessageMapper(MessageConverter messageConverter) |
Modifier and Type | Method and Description |
---|---|
Object |
fromMessage(Message<?> message) |
Message<?> |
toMessage(TcpConnection connection,
Map<String,Object> headers)
Convert a provided object to the
Message
and supply with headers if necessary and provided. |
addCustomHeaders, addStandardHeaders, getMessageBuilderFactory, setAddContentTypeHeader, setApplySequence, setBeanFactory, setBytesMessageMapper, setCharset, setContentType, setStringToBytes, supplyCustomHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toMessage
public MessageConvertingTcpMessageMapper(MessageConverter messageConverter)
public Message<?> toMessage(TcpConnection connection, @Nullable Map<String,Object> headers)
InboundMessageMapper
Message
and supply with headers if necessary and provided.toMessage
in interface InboundMessageMapper<TcpConnection>
toMessage
in class TcpMessageMapper
connection
- the object for message payload or some other conversion logicheaders
- additional headers for building message. Can be nullpublic Object fromMessage(Message<?> message)
fromMessage
in interface OutboundMessageMapper<Object>
fromMessage
in class TcpMessageMapper