|
AdroitLogic UltraESB v1.7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.adroitlogic.as2.manager.AS2Manager
public class AS2Manager
Holds the AS2 configuration, and acts as the interface between the AS2 support and the UltraESB
Refer to samples # 350 and # 351 for sample configuration and use
| Constructor Summary | |
|---|---|
AS2Manager(java.lang.String userAgentName,
java.lang.String as2Identifier,
java.lang.String emailAddress,
KeystoreManager ksManager,
FileCache fileCache)
Create the AS2Manager instance without any persistence |
|
AS2Manager(java.lang.String userAgentName,
java.lang.String as2Identifier,
java.lang.String emailAddress,
KeystoreManager ksManager,
FileCache fileCache,
PersistenceService pService)
Create the AS2Manager instance |
|
| Method Summary | |
|---|---|
SendInfo |
prepareAS2MessageForSend(Message msg,
Partner partner)
Create an AS2 message using the current Message and its attachments, to be sent to the specified Partner |
SendInfo |
prepareAS2MessageForSend(Message msg,
java.lang.String partnerID)
Create an AS2 message using the current Message and its attachments, and sets the destination URL of the partner. |
void |
prepareAsyncMDNForSend(Message asyncMdn,
ReceiveInfo rcvInfo)
Prepare the async MDN message to be sent by populating the payload (i.e. |
AsyncMDNInfo |
processAsyncMDN(Message msg)
Routine to process a new Async MDN received |
void |
processAsyncMDNSendResult(Message msg)
Notify the outcome of the async MDN send operation |
ReceiveInfo |
processIncomingAS2Message(Message msg)
Routine to process a new AS2 message received over HTTP/S, and parse it and take necessary AS2 protocol level action on it, and populate the current message with the attachments for subsequent processing |
SyncResponseInfo |
processSyncResponse(Message msg)
Routine to process sync response received (sync MDN or transport ack or nack) |
void |
recordSendFailure(Message msg)
Record AS2 message send as failed |
void |
setAsyncURLForMDN(java.lang.String asyncURLForMDN)
Set the URL for asynchronous MDNs - should be the externally visible URL (default http://localhost:8280/service/AS2Receiver) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AS2Manager(java.lang.String userAgentName,
java.lang.String as2Identifier,
java.lang.String emailAddress,
KeystoreManager ksManager,
FileCache fileCache,
PersistenceService pService)
userAgentName - the User agent name to assignas2Identifier - the local AS2 identifieremailAddress - the local email addressksManager - the reference to the KeystoreManagerfileCache - the reference to the FileCachepService - persisitence service to be used
public AS2Manager(java.lang.String userAgentName,
java.lang.String as2Identifier,
java.lang.String emailAddress,
KeystoreManager ksManager,
FileCache fileCache)
userAgentName - the User agent name to assignas2Identifier - the local AS2 identifieremailAddress - the local email addressksManager - the reference to the KeystoreManagerfileCache - the reference to the FileCache| Method Detail |
|---|
public ReceiveInfo processIncomingAS2Message(Message msg)
processIncomingAS2Message in interface AS2Managermsg - message containing raw HTTP/S level AS2 message
public SendInfo prepareAS2MessageForSend(Message msg,
java.lang.String partnerID)
prepareAS2MessageForSend in interface AS2Managermsg - the current MessagepartnerID - the AS2 identifier of the destination partner, when a PersistenceService is provided
public SendInfo prepareAS2MessageForSend(Message msg,
Partner partner)
prepareAS2MessageForSend in interface AS2Managermsg - the current Messagepartner - the destination partner
ProcessingException - on errors encountered in message preparation
public void prepareAsyncMDNForSend(Message asyncMdn,
ReceiveInfo rcvInfo)
prepareAsyncMDNForSend in interface AS2ManagerasyncMdn - the message to be populated with the async MDN informationrcvInfo - the AS2 receive information bean containing the information for the async MDN creationpublic void processAsyncMDNSendResult(Message msg)
processAsyncMDNSendResult in interface AS2Managermsg - the response message received or the failed message (for an error handler)public void recordSendFailure(Message msg)
recordSendFailure in interface AS2Managermsg - the response message received or the failed message (for an error handler)public AsyncMDNInfo processAsyncMDN(Message msg)
processAsyncMDN in interface AS2Managermsg - message containing raw HTTP/S level Async MDN message
public SyncResponseInfo processSyncResponse(Message msg)
processSyncResponse in interface AS2Managermsg - message containing raw HTTP/S level response
public void setAsyncURLForMDN(java.lang.String asyncURLForMDN)
asyncURLForMDN - the externally visible URL for asynchronous MDNs to be used by Partners
|
Copyright (c) 2010-2012 AdroitLogic Private Ltd. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||