public interface MessageFactory
The MessageFactory
interface follows the typical factory design pattern and allows applications to
create empty message containers. Applications can then populate the message using the accessor methods of the
Message
object.
It is important to note that the Message
will be constructed with the following key fields: FromParty,
ToParty, FromService, ToService, and Action. These keys will be used to look up important configurable information
from the registry that is required to transmit the message. The intent is that the application will know the logical
sender, sender system, receiver, receiver system, and what they are trying to accomplish, but not necessarily
protocol specific or transmission specific details (e.g. should it be sent via JMS or HTTP).
Modifier and Type | Method and Description |
---|---|
Message |
createMessage(Party fromParty,
Party toParty,
Service fromService,
Service toService,
Action action)
The
MessageFactory implementation will validate the parameters, do a registry lookup based on the
parameters, and create an empty messsage containing all the information available from the registry. |
Message |
createMessage(Party fromParty,
Party toParty,
Service fromService,
Service toService,
Action action,
String messageId)
The
MessageFactory implementation will validate the parameters, do a registry lookup based on the
parameters, and create an empty messsage containing all the information available from the registry. |
Message createMessage(Party fromParty, Party toParty, Service fromService, Service toService, Action action) throws MessagingException
MessageFactory
implementation will validate the parameters, do a registry lookup based on the
parameters, and create an empty messsage containing all the information available from the registry. If any of the
parameters is null
, an InvalidParamException
will be thrown.fromParty
- the originating partytoParty
- the destination partyfromService
- the originating servicetoService
- the destination serviceaction
- the action of the targeting processMessagingException
- if the message couldn't be created.Message createMessage(Party fromParty, Party toParty, Service fromService, Service toService, Action action, String messageId) throws MessagingException
MessageFactory
implementation will validate the parameters, do a registry lookup based on the
parameters, and create an empty messsage containing all the information available from the registry. If any of the
parameters is null
, an InvalidParamException
will be thrown.fromParty
- the originating partytoParty
- the destination partyfromService
- the originating servicetoService
- the destination serviceaction
- the action of the targeting processmessageId
- the Message ID.MessagingException
- if the message couldn't be created.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.ifc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice