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 SummaryFields inherited from class org.springframework.integration.ip.tcp.connection.TcpMessageMapperlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.TcpMessageMapperaddCustomHeaders, addStandardHeaders, getMessageBuilderFactory, setAddContentTypeHeader, setApplySequence, setBeanFactory, setBytesMessageMapper, setCharset, setContentType, setStringToBytes, supplyCustomHeadersMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.mapping.InboundMessageMappertoMessage
- 
Constructor Details- 
MessageConvertingTcpMessageMapper
 
- 
- 
Method Details- 
toMessageDescription copied from interface:InboundMessageMapperConvert a provided object to theMessageand supply with headers if necessary and provided.- Specified by:
- toMessagein interface- InboundMessageMapper<TcpConnection>
- Overrides:
- toMessagein class- TcpMessageMapper
- Parameters:
- connection- the object for message payload or some other conversion logic
- headers- additional headers for building message. Can be null
- Returns:
- the message as a result of mapping
 
- 
fromMessage- Specified by:
- fromMessagein interface- OutboundMessageMapper<Object>
- Overrides:
- fromMessagein class- TcpMessageMapper
 
 
-