@Override protected String parse(String theValue) { if (XmlDetectionUtil.isStaxPresent()) { // for validation XmlUtil.parse(theValue); } return theValue; }
BaseClient(IHttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) { super(); myClient = theClient; myUrlBase = theUrlBase; myFactory = theFactory; /* * This property is used by unit tests - do not rely on it in production code * as it may change at any time. If you want to capture responses in a reliable * way in your own code, just use client interceptors */ if ("true".equals(System.getProperty(HAPI_CLIENT_KEEPRESPONSES))) { setKeepResponses(true); } if (XmlDetectionUtil.isStaxPresent() == false) { myEncoding = EncodingEnum.JSON; } }
@Override protected String parse(String theValue) { if (XmlDetectionUtil.isStaxPresent()) { // for validation XmlUtil.parse(theValue); } return theValue; }
BaseClient(IHttpClient theClient, String theUrlBase, RestfulClientFactory theFactory) { super(); myClient = theClient; myUrlBase = theUrlBase; myFactory = theFactory; /* * This property is used by unit tests - do not rely on it in production code * as it may change at any time. If you want to capture responses in a reliable * way in your own code, just use client interceptors */ if ("true".equals(System.getProperty(HAPI_CLIENT_KEEPRESPONSES))) { setKeepResponses(true); } if (XmlDetectionUtil.isStaxPresent() == false) { myEncoding = EncodingEnum.JSON; } }