Author: adietish
Date: 2010-12-29 17:15:10 -0500 (Wed, 29 Dec 2010)
New Revision: 27810
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClientImpl.java
Log:
fixed unmarshalling of realms
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClientImpl.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClientImpl.java 2010-12-29
21:52:00 UTC (rev 27809)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClientImpl.java 2010-12-29
22:15:10 UTC (rev 27810)
@@ -465,7 +465,7 @@
throws ParserConfigurationException, SAXException, IOException,
DeltaCloudClientException {
Document document = getDocument(getResponse(inputStream));
List<Realm> realms = new ArrayList<Realm>();
- NodeList elements = document.getElementsByTagName("realms");
+ NodeList elements = document.getElementsByTagName("realm");
for (int i = 0; i < elements.getLength(); i++) {
Realm realm = createRealm((Element) elements.item(i));
realms.add(realm);
Show replies by date