Class MessageConvertingTcpMessageMapper
java.lang.Object
org.springframework.integration.ip.tcp.connection.TcpMessageMapper
org.springframework.integration.ip.tcp.connection.MessageConvertingTcpMessageMapper
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,InboundMessageMapper<TcpConnection>
,OutboundMessageMapper<Object>
public class MessageConvertingTcpMessageMapper extends TcpMessageMapper
- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.ip.tcp.connection.TcpMessageMapper
logger
-
Constructor Summary
Constructors Constructor Description MessageConvertingTcpMessageMapper(MessageConverter messageConverter)
-
Method Summary
Modifier and Type Method Description Object
fromMessage(Message<?> message)
Message<?>
toMessage(TcpConnection connection, Map<String,Object> headers)
Convert a provided object to theMessage
and supply with headers if necessary and provided.Methods inherited from class org.springframework.integration.ip.tcp.connection.TcpMessageMapper
addCustomHeaders, addStandardHeaders, getMessageBuilderFactory, setAddContentTypeHeader, setApplySequence, setBeanFactory, setBytesMessageMapper, setCharset, setContentType, setStringToBytes, supplyCustomHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.mapping.InboundMessageMapper
toMessage
-
Constructor Details
-
Method Details
-
toMessage
Description copied from interface:InboundMessageMapper
Convert a provided object to theMessage
and supply with headers if necessary and provided.- Specified by:
toMessage
in interfaceInboundMessageMapper<TcpConnection>
- Overrides:
toMessage
in classTcpMessageMapper
- Parameters:
connection
- the object for message payload or some other conversion logicheaders
- additional headers for building message. Can be null- Returns:
- the message as a result of mapping
-
fromMessage
- Specified by:
fromMessage
in interfaceOutboundMessageMapper<Object>
- Overrides:
fromMessage
in classTcpMessageMapper
-