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 |
public static java.util.Optional<AppHdr> parse(java.lang.String xml)
LegacyAppHdr
, BusinessAppHdrV01
or BusinessAppHdrV02
xml
- and XML to parse, only the AppHdr element is parse, the rest of the XML content is silently ignoredpublic static java.util.Optional<AppHdr> parse(org.w3c.dom.Element e)
The implementation serializes the element into XML and calls parse(String)