public class

QBWMessageUtils

extends MessageUtils
java.lang.Object
   ↳ org.mule.modules.quickbooks.utils.MessageUtils
     ↳ org.mule.modules.quickbooks.windows.objectfactory.QBWMessageUtils

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 QBWMessageUtils qbwMessageUtils
Public Methods
static QBWMessageUtils 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 QBWMessageUtils qbwMessageUtils

Public Methods

public static QBWMessageUtils 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.