PartnershipOpVeriferis an helper class for verifying whether the partnership operation has been executed successfully. Since H2O does not have any build-in SOAP-based web service for managing the partnerships under remote behavior, The PartnershipOpVerifer acts as a validator for validating the HTML content returning from the H2O administration web page. The main method of this class is
validate(InputStream)and the arugment is the input stream. The input stream SHOULD contains the HTML content after you executed add/delete/update partnership in either AS2/EBMS partnership administration page.
Author: Twinsen Tsang
Validate the HTML content received after executed partnership operation. The content is passed as a input stream
ins. This operation is quite expensive because it first transform the whole HTML content received to a well-formed XHTML before parsing by the SAX Parser.
- ins – The HTML content to validate the result of partnership operation
- SAXException –
- When unable to down-load the HTML DTD from the web. Check your Internet connectivity
- When IO related problems occur
- ParserConfigurationException – When SAX parser mis-configures.