com.ibm.etill.framework.clientapi
Class XDMParser

java.lang.Object
  DOMParser
      com.ibm.etill.framework.clientapi.XDMParser

public class XDMParser
extends DOMParser

This class is used to parse the body of the return value from the Commerce Payments request.

See Also:
Serialized Form

Constructor Summary
XDMParser(java.io.InputStream byteStream)
Construct the XDM Parser object.
Method Summary
void error(SAXParseException ex)
Increase the error counter.
void fatalError(SAXParseException ex)
Increase the error counter and throw the exception.
java.lang.String getFormattedXML()
Return the fomatted XML document.
void warning(SAXParseException ex)
Increase the warning counter.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

XDMParser

public XDMParser(java.io.InputStream byteStream)
Construct the XDM Parser object. The constructor takes a byteStream as input, which contains the body of the response from the Commerce Payments request. The body of the response should be in a valid XML format. Otherwise, an exception will be thrown.
Method Detail

warning

public void warning(SAXParseException ex)
Increase the warning counter.

error

public void error(SAXParseException ex)
Increase the error counter.

fatalError

public void fatalError(SAXParseException ex)
                throws SAXException
Increase the error counter and throw the exception.
Throws:
SAXException - SAXException is thrown after increasing the errorCount.

getFormattedXML

public java.lang.String getFormattedXML()
Return the fomatted XML document.

Feedback