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>
- 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 -
Method Summary
Modifier and TypeMethodDescriptionfromMessage(Message<?> message) Message<?>toMessage(TcpConnection connection, Map<String, Object> headers) Convert a provided object to theMessageand 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, supplyCustomHeadersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.mapping.InboundMessageMapper
toMessage
-
Constructor Details
-
MessageConvertingTcpMessageMapper
-
-
Method Details
-
toMessage
Description copied from interface:InboundMessageMapperConvert a provided object to theMessageand supply with headers if necessary and provided.- Specified by:
toMessagein interfaceInboundMessageMapper<TcpConnection>- Overrides:
toMessagein 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:
fromMessagein interfaceOutboundMessageMapper<Object>- Overrides:
fromMessagein classTcpMessageMapper
-