Interface DomibusConnectorClientContentMapper
-
public interface DomibusConnectorClientContentMapper
Interface with methods to map the businessContent of aDomibusConnectorMessageType
message. The businessContent is placed inside theDomibusConnectorMessageContentType
of a message. If implemented and the implementation is on the classpath, then it will be instantiated automatically.- Author:
- riederb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DomibusConnectorMessageType
mapInboundBusinessContent(DomibusConnectorMessageType message)
Method to map the businessContent of an inbound message before storing the message at the client side.DomibusConnectorMessageType
mapOutboundBusinessContent(DomibusConnectorMessageType message)
Method to map the businessContent of an outbound message before sending the message to the domibusConnector.
-
-
-
Method Detail
-
mapInboundBusinessContent
DomibusConnectorMessageType mapInboundBusinessContent(DomibusConnectorMessageType message) throws DomibusConnectorClientContentMapperException
Method to map the businessContent of an inbound message before storing the message at the client side. After the mapping, if successful, the businessContent inside the inbound message will be replaced with the mapped content. The default implementation, if not overridden, will result in doing nothing. Meaning, that the businessContent will remain the same after the mapping is called.- Parameters:
message
- - aDomibusConnectorMessageType
object containing the received businessContent inside theDomibusConnectorMessageContentType
.- Returns:
- The
DomibusConnectorMessageType
with the mapped businessContent inside theDomibusConnectorMessageContentType
. - Throws:
DomibusConnectorClientContentMapperException
-
mapOutboundBusinessContent
DomibusConnectorMessageType mapOutboundBusinessContent(DomibusConnectorMessageType message) throws DomibusConnectorClientContentMapperException
Method to map the businessContent of an outbound message before sending the message to the domibusConnector. After the mapping, if successful, the businessContent inside the outbound message will be replaced with the mapped content. The default implementation, if not overridden, will result in doing nothing. Meaning, that the businessContent will remain the same after the mapping is called.- Parameters:
message
- - aDomibusConnectorMessageType
object containing the original businessContent inside theDomibusConnectorMessageContentType
.- Returns:
- The
DomibusConnectorMessageType
with the mapped businessContent inside theDomibusConnectorMessageContentType
. - Throws:
DomibusConnectorClientContentMapperException
-
-