AdroitLogic UltraESB v1.7.0

org.adroitlogic.as2.api
Interface PersistenceService


public interface PersistenceService

Interface for AS2 persistence implementation. The AS2 Manager will notify a configured AS2 PersistenceService to save AS2 message meta information and payloads for auditing, logging and other requirements. Such a service will operate as part of the core AS2Manager if specified, and could record core AS2 information for durable recording purposes


Method Summary
 Partner getPartner(java.lang.String id)
          Lookup partner information from persistence database
 void preparedMDNForSend(ReceiveInfo rcvInfo, Message msg)
          Record the preparation of a MDN to be sent back
 void preparedMessageForSend(SendInfo sndInfo, Message msg)
          Record the preparation of an AS2 message for sending to a partner
 void receivedAS2Message(ReceiveInfo rcvInfo, Message msg, java.util.List attachments)
          Persist a received AS2 Message
 void receivedASyncMDN(AsyncMDNInfo rcvInfo, Message msg, java.util.List attachments)
          Persist a received asynchronous MDN
 void receivedSyncMDN(SyncResponseInfo rcvInfo, Message msg, java.util.List attachments)
          Persist a received synchronous MDN
 void updateMessagePreparedForSend(java.lang.String msgId, boolean failed, int transportStatus)
          Record the outcome of a message prepared for sending
 

Method Detail

receivedAS2Message

void receivedAS2Message(ReceiveInfo rcvInfo,
                        Message msg,
                        java.util.List attachments)
Persist a received AS2 Message

Parameters:
rcvInfo - bean holding information on receipt of the new message
msg - raw message (HTTP/S) received
attachments - processed payload attachments

receivedSyncMDN

void receivedSyncMDN(SyncResponseInfo rcvInfo,
                     Message msg,
                     java.util.List attachments)
Persist a received synchronous MDN

Parameters:
rcvInfo - bean holding information on the sync response received
msg - raw message (HTTP/S) received
attachments - processed payload attachments

receivedASyncMDN

void receivedASyncMDN(AsyncMDNInfo rcvInfo,
                      Message msg,
                      java.util.List attachments)
Persist a received asynchronous MDN

Parameters:
rcvInfo - bean holding information on the async response received
msg - raw message (HTTP/S) received
attachments - processed payload attachments

preparedMDNForSend

void preparedMDNForSend(ReceiveInfo rcvInfo,
                        Message msg)
Record the preparation of a MDN to be sent back

Parameters:
rcvInfo - bean holding information on receipt of the original message
msg - raw message to be used for the MDN

preparedMessageForSend

void preparedMessageForSend(SendInfo sndInfo,
                            Message msg)
Record the preparation of an AS2 message for sending to a partner

Parameters:
sndInfo - bean holding information about the send operation
msg - raw message to be used for the MDN

updateMessagePreparedForSend

void updateMessagePreparedForSend(java.lang.String msgId,
                                  boolean failed,
                                  int transportStatus)
Record the outcome of a message prepared for sending

Parameters:
msgId - the AS2 message ID
failed - whether the send failed
transportStatus - if the send succeeded, the transport level status received

getPartner

Partner getPartner(java.lang.String id)
Lookup partner information from persistence database

Parameters:
id - AS2 identifier of the Partner
Returns:
Partner if found

Copyright (c) 2010-2012 AdroitLogic Private Ltd. All rights reserved.