|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mulesoft.adapter.ra.XIMessageFactoryImpl
public class XIMessageFactoryImpl
The XiMessageFactory allows to create an XI AF message via
the XI AF message factory. It uses the XI Messaging Service API to instantiate
XI message objects directly. Additionally it offers a wrapper to create XI acks.
Secondly it serves as RecordFactory implemenation.
| Constructor Summary | |
|---|---|
XIMessageFactoryImpl(String adapterType,
String adapterNamespace)
Creates a XI AF compliant message factory. |
|
| Method Summary | |
|---|---|
void |
ackNotSupported(com.sap.engine.interfaces.messaging.api.MessageKey messageKey,
com.sap.engine.interfaces.messaging.api.AckType[] acksNotSupported)
Publish if acks are not supported (XI specific) |
void |
applicationAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck)
Send an application ACK (XI specific) |
void |
applicationErrorAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck,
Exception error)
Send an application error ACK (XI specific) |
javax.resource.cci.IndexedRecord |
createIndexedRecord(String arg0)
According to the RecordFactory interface a method to create index records must be provided. |
javax.resource.cci.MappedRecord |
createMappedRecord(String arg0)
According to the RecordFactory interface a method to create map records must be provided. |
com.sap.engine.interfaces.messaging.api.Message |
createMessageRecord(com.sap.engine.interfaces.messaging.api.Party fromParty,
com.sap.engine.interfaces.messaging.api.Party toParty,
com.sap.engine.interfaces.messaging.api.Service fromService,
com.sap.engine.interfaces.messaging.api.Service toService,
com.sap.engine.interfaces.messaging.api.Action action)
Creates a new message record. |
com.sap.engine.interfaces.messaging.api.Message |
createMessageRecord(com.sap.engine.interfaces.messaging.api.Party fromParty,
com.sap.engine.interfaces.messaging.api.Party toParty,
com.sap.engine.interfaces.messaging.api.Service fromService,
com.sap.engine.interfaces.messaging.api.Service toService,
com.sap.engine.interfaces.messaging.api.Action action,
String messageId)
Creates a new message record. |
com.sap.engine.interfaces.messaging.api.Message |
createMessageRecord(String fromParty,
String toParty,
String fromService,
String toService,
String action,
String actionNS)
Creates a new message record. |
com.sap.engine.interfaces.messaging.api.Message |
createMessageRecord(String fromParty,
String toParty,
String fromService,
String toService,
String action,
String actionNS,
String messageId)
Creates a new message record. |
com.sap.aii.af.lib.ra.cci.XIMessageRecord |
createXIMessageRecord()
Create a empty message record to be used by the application for the outbound case. |
void |
deliveryAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck)
Send an delivery ACK (XI specific) |
void |
deliveryErrorAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck,
Exception error)
Send an delivery error ACK (XI specific) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XIMessageFactoryImpl(String adapterType,
String adapterNamespace)
throws javax.resource.ResourceException
javax.resource.ResourceException| Method Detail |
|---|
public com.sap.engine.interfaces.messaging.api.Message createMessageRecord(String fromParty,
String toParty,
String fromService,
String toService,
String action,
String actionNS)
throws javax.resource.ResourceException
null, an
InvalidParamException will be thrown.
(ra implementation specific)
- Parameters:
fromParty - the originating partytoParty - the destination partyfromService - the originating servicetoService - the destination serviceaction - the action of the targeting process. The XI GUIs use the term interface instead of actionactionNS - the action (or interface) namespace of the targeting process
- Returns:
- Message an empty message with only party, service, action and the
message id header fields set.
- Throws:
javax.resource.ResourceException - if the message couldn't be created.
public com.sap.engine.interfaces.messaging.api.Message createMessageRecord(com.sap.engine.interfaces.messaging.api.Party fromParty,
com.sap.engine.interfaces.messaging.api.Party toParty,
com.sap.engine.interfaces.messaging.api.Service fromService,
com.sap.engine.interfaces.messaging.api.Service toService,
com.sap.engine.interfaces.messaging.api.Action action)
throws javax.resource.ResourceException
javax.resource.ResourceException
public com.sap.engine.interfaces.messaging.api.Message createMessageRecord(String fromParty,
String toParty,
String fromService,
String toService,
String action,
String actionNS,
String messageId)
throws javax.resource.ResourceException
null, an
InvalidParamException will be thrown.
(ra implementation specific)
- Parameters:
fromParty - the originating partytoParty - the destination partyfromService - the originating servicetoService - the destination serviceaction - the action of the targeting processactionNS - the action (or interface) namespace of the targeting processmessageId - the Message ID.
- Returns:
- Message an empty message with only party, service, action and the
message id header fields set.
- Throws:
javax.resource.ResourceException - if the message couldn't be created.
public com.sap.engine.interfaces.messaging.api.Message createMessageRecord(com.sap.engine.interfaces.messaging.api.Party fromParty,
com.sap.engine.interfaces.messaging.api.Party toParty,
com.sap.engine.interfaces.messaging.api.Service fromService,
com.sap.engine.interfaces.messaging.api.Service toService,
com.sap.engine.interfaces.messaging.api.Action action,
String messageId)
throws javax.resource.ResourceException
javax.resource.ResourceException
public javax.resource.cci.MappedRecord createMappedRecord(String arg0)
throws javax.resource.ResourceException
createMappedRecord in interface javax.resource.cci.RecordFactoryjavax.resource.ResourceException - Always thrown
public javax.resource.cci.IndexedRecord createIndexedRecord(String arg0)
throws javax.resource.ResourceException
createIndexedRecord in interface javax.resource.cci.RecordFactoryjavax.resource.ResourceException - Always thrownpublic com.sap.aii.af.lib.ra.cci.XIMessageRecord createXIMessageRecord()
createXIMessageRecord in interface com.sap.aii.af.lib.ra.cci.XIRecordFactory
public void ackNotSupported(com.sap.engine.interfaces.messaging.api.MessageKey messageKey,
com.sap.engine.interfaces.messaging.api.AckType[] acksNotSupported)
throws com.sap.engine.interfaces.messaging.api.exception.MessagingException
messageKey - identifies the message that cannot be ack'edacksNotSupported - identfies the not supported ACK type: 'deliveryAck', 'deliveryErrorAck', 'applicationAck', 'applicationErrorAck'
com.sap.engine.interfaces.messaging.api.exception.MessagingException - Exception if ACK name is wrong.public void applicationAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck)
messageToAck - identifies the message for that an application ack has to be sent
public void applicationErrorAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck,
Exception error)
messageToAck - identifies the message for that an application ack has to be senterror - Exception that describes the application errorpublic void deliveryAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck)
messageToAck - identifies the message for that a delivery ack has to be sent
public void deliveryErrorAck(com.sap.engine.interfaces.messaging.api.MessageKey messageToAck,
Exception error)
messageToAck - identifies the message for that an delivery ack has to be senterror - Exception that describes the application error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||