public class

QBOMessageUtils

extends MessageUtils
java.lang.Object
   ↳ org.mule.modules.quickbooks.utils.MessageUtils
     ↳ org.mule.modules.quickbooks.online.objectfactory.QBOMessageUtils

Class Overview

The MessageUtils helps to manage marshaling and unmarshaling of QBO objects. getXMLDocument method converts the object to the XML String to send to IDS. ParseResponse extracts the response CDM object or Error Object from the response XML.

Summary

Fields
private static QBOMessageUtils qboMessageUtils
Public Methods
static QBOMessageUtils getInstance()
Object parseResponse(String responseString)
Clients of this method must make their own determination as to the contents of the response.
Protected Methods
JAXBContext getJaxbContext()
Object getObjectFactory()
Get object of ObjectFactory class generated using JAXB and XSD
[Expand]
Inherited Methods
From class org.mule.modules.quickbooks.utils.MessageUtils
From class java.lang.Object

Fields

private static QBOMessageUtils qboMessageUtils

Public Methods

public static QBOMessageUtils getInstance ()

public Object parseResponse (String responseString)

Clients of this method must make their own determination as to the contents of the response. Generally this can be safely achieved by checking the instanceof.

Parameters
responseString
Returns
  • The unmarshalled response object.
Throws
JAXBException

Protected Methods

protected JAXBContext getJaxbContext ()

protected Object getObjectFactory ()

Get object of ObjectFactory class generated using JAXB and XSD

Returns
  • ObjectFactory Class object.