public class AppHdrParser
extends java.lang.Object
| Constructor and Description |
|---|
AppHdrParser() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<AppHdr> |
parse(org.w3c.dom.Element e)
Parse the business header from an XML Element node
|
static java.util.Optional<AppHdr> |
parse(java.lang.String xml)
Detects the header version by reading the namespace in the AppHdr element and parses the header content to
a specific header model:
LegacyAppHdr, BusinessAppHdrV01 or BusinessAppHdrV02
Default adapters are applied, for more options use parse(String, MxReadParams) |
static java.util.Optional<AppHdr> |
parse(java.lang.String xml,
MxReadParams params)
Detects the header version by reading the namespace in the AppHdr element and parses the header content to
a specific header model:
LegacyAppHdr, BusinessAppHdrV01 or BusinessAppHdrV02 |
public static java.util.Optional<AppHdr> parse(java.lang.String xml)
LegacyAppHdr, BusinessAppHdrV01 or BusinessAppHdrV02
Default adapters are applied, for more options use parse(String, MxReadParams)xml - a not null XML to parse, only the AppHdr element is parse, the rest of the XML content is silently ignoredpublic static java.util.Optional<AppHdr> parse(java.lang.String xml, MxReadParams params)
LegacyAppHdr, BusinessAppHdrV01 or BusinessAppHdrV02xml - an not null XML to parse, only the AppHdr element is parse, the rest of the XML content is silently ignoredparams - not null unmarshalling parameterspublic static java.util.Optional<AppHdr> parse(org.w3c.dom.Element e)
The implementation serializes the element into XML and calls parse(String)