public class AppHdrFactory
extends java.lang.Object
| Constructor and Description |
|---|
AppHdrFactory() |
| Modifier and Type | Method and Description |
|---|---|
static AppHdr |
createAppHdr(AppHdrType type,
java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Convenient method to create a new header, initialized from simple parameters.
|
static BusinessAppHdrV01 |
createBusinessAppHdrV01(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Convenient method to create a new ISO header version 1, initialized from simple parameters.
|
static BusinessAppHdrV02 |
createBusinessAppHdrV02(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Convenient method to create a new ISO header version 2, initialized from simple parameters.
|
static AppHdr |
createLegacyAppHdr(AppHdrType type,
java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Deprecated.
|
static LegacyAppHdr |
createLegacyAppHdr(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Convenient method to create a new legacy SWIFT header, initialized from simple parameters.
|
public static BusinessAppHdrV01 createBusinessAppHdrV01(java.lang.String sender, java.lang.String receiver, java.lang.String reference, MxId id)
All parameters are optional but in order for the header to be valid the sender, receiver and reference must be set. Creation date will be set to current time.
sender - optional sender BIC for the Fr element or null to leave not setreceiver - optional receiver BIC for the To element or null to leave not setreference - optional reference for the BizMsgIdr (business message identifier) or null to leave not setid - optional MX identification for the MsgDefIdr (message definition identifier) element or null to leave not setpublic static BusinessAppHdrV02 createBusinessAppHdrV02(java.lang.String sender, java.lang.String receiver, java.lang.String reference, MxId id)
All parameters are optional but in order for the header to be valid the sender, receiver and reference must be set. Creation date will be set to current time.
sender - optional sender BIC for the Fr element or null to leave not setreceiver - optional receiver BIC for the To element or null to leave not setreference - optional reference for the BizMsgIdr (business message identifier) or null to leave not setid - optional MX identification for the MsgDefIdr (message definition identifier) element or null to leave not setpublic static LegacyAppHdr createLegacyAppHdr(java.lang.String sender, java.lang.String receiver, java.lang.String reference, MxId id)
All parameters are optional but in order for the header to be valid the sender, receiver and reference must be set. Creation date will be set to current time.
sender - optional sender BIC for the Fr element or null to leave not setreceiver - optional receiver BIC for the To element or null to leave not setreference - optional reference for the BizMsgIdr (business message identifier) or null to leave not setid - optional MX identification for the MsgDefIdr (message definition identifier) element or null to leave not set@ProwideDeprecated(phase2=SRU2022) public static AppHdr createLegacyAppHdr(AppHdrType type, java.lang.String sender, java.lang.String receiver, java.lang.String reference, MxId id)
createAppHdr(AppHdrType, String, String, String, MxId) insteadpublic static AppHdr createAppHdr(AppHdrType type, java.lang.String sender, java.lang.String receiver, java.lang.String reference, MxId id)
sender - optional sender BIC for the Fr element or null to leave not setreceiver - optional receiver BIC for the To element or null to leave not setreference - optional reference for the BizMsgIdr (business message identifier) or null to leave not setid - optional MX identification for the MsgDefIdr (message definition identifier) element or null to leave not set