AppHdr instead, such as BusinessAppHdrV01@Deprecated @ProwideDeprecated(phase2=SRU2021) public class BusinessHeader extends java.lang.Object implements AppHdr
ApplicationHeaderBusinessApplicationHeaderV01
A more flexible and scalable solution is done is provided now by the AppHdr interface and its implementing
classes. Usage of this BusinessHeader is discourage in favor of AppHdr implementations such as
BusinessAppHdrV01 or LegacyAppHdr
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESPACE_AH
Deprecated.
use
LegacyAppHdr.NAMESPACE instead |
static java.lang.String |
NAMESPACE_BAH
Deprecated.
use
BusinessAppHdrV01.NAMESPACE instead |
HEADER_LOCALNAME| Constructor and Description |
|---|
BusinessHeader()
Deprecated.
use specific implementation of
AppHdr instead, such as BusinessAppHdrV01 |
BusinessHeader(com.prowidesoftware.swift.model.mx.dic.ApplicationHeader applicationHeader)
Deprecated.
use specific implementation of
AppHdr instead, such as LegacyAppHdr |
BusinessHeader(BusinessAppHdrV01 businessAppHdrV01)
Deprecated.
use specific implementation of
AppHdr instead, such as BusinessAppHdrV01 |
BusinessHeader(com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 businessApplicationHeader)
Deprecated.
use specific implementation of
AppHdr instead, such as BusinessAppHdrV01 |
BusinessHeader(LegacyAppHdr legacyAppHdr)
Deprecated.
use specific implementation of
AppHdr instead, such as LegacyAppHdr |
| Modifier and Type | Method and Description |
|---|---|
static BusinessHeader |
create(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Deprecated.
|
static com.prowidesoftware.swift.model.mx.dic.ApplicationHeader |
createApplicationHeader(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Deprecated.
|
static com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 |
createBusinessApplicationHeaderV01(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
Deprecated.
|
javax.xml.datatype.XMLGregorianCalendar |
creationDate()
Deprecated.
Gets the message creation date from the "CreDate" (BAH) or "CrDate" (AH) element.
|
boolean |
duplicate()
Deprecated.
Gets the duplicate flag from the "PssblDplct" (BAH) or "Dup" (AH) element
|
org.w3c.dom.Element |
element()
Deprecated.
Gets the header as an Element object.
|
java.lang.String |
from()
Deprecated.
Gets the sender BIC code.
|
com.prowidesoftware.swift.model.mx.dic.ApplicationHeader |
getApplicationHeader()
Deprecated.
|
com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 |
getBusinessApplicationHeader()
Deprecated.
|
java.lang.String |
messageName()
Deprecated.
Gets the message name from the "MsgDefIdr" (BAH) or "MsgName" (AH) element.
|
java.lang.String |
reference()
Deprecated.
Get the message reference.
|
java.lang.String |
serviceName()
Deprecated.
Gets the service name from the "BizSvc" (BAH) or "SvcName" (AH) element.
|
void |
setApplicationHeader(com.prowidesoftware.swift.model.mx.dic.ApplicationHeader applicationHeader)
Deprecated.
|
void |
setBusinessApplicationHeader(com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 businessApplicationHeader)
Deprecated.
|
void |
setCreationDate(boolean overwrite)
Deprecated.
Sets the creation date in the inner header object with current moment in UTC time zone.
|
java.lang.String |
to()
Deprecated.
Gets the receiver BIC code
If the header is a BAH, tries to gets the BIC code from this elements in the following order: BusinessApplicationHeaderV01/To/FIId/FinInstnId/BICFI BusinessApplicationHeaderV01/To/OrgId/Id/OrgId/Id/AnyBIC If the header is an AH, gets the same from ApplicationHeader/To/Type+Id where if Type is BIC the Id is returned as is, otherwise the domain name is parsed to extract the SWIFT BIC |
java.lang.String |
xml()
Deprecated.
Get this header as an XML string.
|
java.lang.String |
xml(java.lang.String prefix,
boolean includeXMLDeclaration)
Deprecated.
Get this header as an XML string.
|
@Deprecated @ProwideDeprecated(phase2=SRU2021) public static final transient java.lang.String NAMESPACE_AH
LegacyAppHdr.NAMESPACE instead@Deprecated @ProwideDeprecated(phase2=SRU2021) public static final transient java.lang.String NAMESPACE_BAH
BusinessAppHdrV01.NAMESPACE instead@Deprecated @ProwideDeprecated(phase2=SRU2021) public BusinessHeader()
AppHdr instead, such as BusinessAppHdrV01@Deprecated @ProwideDeprecated(phase2=SRU2021) public BusinessHeader(com.prowidesoftware.swift.model.mx.dic.ApplicationHeader applicationHeader)
AppHdr instead, such as LegacyAppHdr@Deprecated @ProwideDeprecated(phase2=SRU2021) public BusinessHeader(LegacyAppHdr legacyAppHdr)
AppHdr instead, such as LegacyAppHdr@Deprecated @ProwideDeprecated(phase2=SRU2021) public BusinessHeader(com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 businessApplicationHeader)
AppHdr instead, such as BusinessAppHdrV01@Deprecated @ProwideDeprecated(phase2=SRU2021) public BusinessHeader(BusinessAppHdrV01 businessAppHdrV01)
AppHdr instead, such as BusinessAppHdrV01@Deprecated
@ProwideDeprecated(phase2=SRU2021)
public static com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 createBusinessApplicationHeaderV01(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
AppHdrFactory.createBusinessAppHdrV01(String, String, String, MxId) instead@Deprecated @ProwideDeprecated(phase2=SRU2021) public static BusinessHeader create(java.lang.String sender, java.lang.String receiver, java.lang.String reference, MxId id)
AppHdrFactory.createBusinessAppHdrV01(String, String, String, MxId) instead@Deprecated
@ProwideDeprecated(phase2=SRU2021)
public static com.prowidesoftware.swift.model.mx.dic.ApplicationHeader createApplicationHeader(java.lang.String sender,
java.lang.String receiver,
java.lang.String reference,
MxId id)
AppHdrFactory.createLegacyAppHdr(String, String, String, MxId) insteadpublic com.prowidesoftware.swift.model.mx.dic.ApplicationHeader getApplicationHeader()
public void setApplicationHeader(com.prowidesoftware.swift.model.mx.dic.ApplicationHeader applicationHeader)
public com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 getBusinessApplicationHeader()
public void setBusinessApplicationHeader(com.prowidesoftware.swift.model.mx.dic.BusinessApplicationHeaderV01 businessApplicationHeader)
public java.lang.String from()
public java.lang.String to()
public java.lang.String reference()
public java.lang.String messageName()
AppHdrmessageName in interface AppHdrpublic java.lang.String serviceName()
AppHdrserviceName in interface AppHdrpublic boolean duplicate()
AppHdrpublic javax.xml.datatype.XMLGregorianCalendar creationDate()
AppHdrcreationDate in interface AppHdrpublic java.lang.String xml()
xml in interface AppHdrxml(String, boolean)public java.lang.String xml(java.lang.String prefix,
boolean includeXMLDeclaration)
public org.w3c.dom.Element element()
public void setCreationDate(boolean overwrite)
setCreationDate in interface AppHdroverwrite - if true, the creation date will always be set overwriting any previous value; if false it will be set only if it is not already set