perfsonar-dev - r1508 - trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService
Subject: perfsonar development work
List archive
r1508 - trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService
Chronological Thread
- From:
- To:
- Subject: r1508 - trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService
- Date: Thu, 3 Aug 2006 09:21:25 -0400
Author: roman
Date: 2006-08-03 09:21:24 -0400 (Thu, 03 Aug 2006)
New Revision: 1508
Modified:
trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService/LSRegisterRequestGenerator.java
Log:
wrong use of XMLUtils.getElementFromXML method corrected
Modified:
trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService/LSRegisterRequestGenerator.java
===================================================================
---
trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService/LSRegisterRequestGenerator.java
2006-08-02 14:03:38 UTC (rev 1507)
+++
trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService/LSRegisterRequestGenerator.java
2006-08-03 13:21:24 UTC (rev 1508)
@@ -1,7 +1,9 @@
package org.perfsonar.client.commons.requests.lookupService;
import java.util.Map;
+import java.util.Collection;
+import org.ggf.ns.nmwg.base.v2_0.Element;
import org.ggf.ns.nmwg.base.v2_0.Data;
import org.ggf.ns.nmwg.base.v2_0.Message;
import org.ggf.ns.nmwg.base.v2_0.Metadata;
@@ -11,11 +13,14 @@
import org.ggf.ns.nmwg.tools.org.perfsonar.service.v1_0.ServiceName;
import org.ggf.ns.nmwg.tools.org.perfsonar.service.v1_0.ServiceType;
import org.ggf.ns.nmwg.tools.org.perfsonar.v1_0.Subject;
+
import org.perfsonar.client.commons.requests.RequestGenerator;
+
import org.perfsonar.commons.auxiliary.AuxiliaryComponentManager;
import org.perfsonar.commons.auxiliary.ComponentNames;
import
org.perfsonar.commons.auxiliary.components.configuration.ConfigurationComponent;
import org.perfsonar.commons.util.XMLUtils;
+
import org.perfsonar.service.commons.exceptions.SystemException;
/**
@@ -116,11 +121,19 @@
+ "\n</nmwg:message>\n";
- Data dataFromXML = (Data)XMLUtils.getElementFromXML(
+ Map<String, Element> dataFromXML = XMLUtils.getElementFromXML(
xml, "data",
parserFile);
- if (dataFromXML!=null)
- message.addChild(dataFromXML);
+
+ if (dataFromXML!=null) {
+
+ Collection<Element> collection = dataFromXML.values();
+ for (Element elem : collection) {
+ //System.out.println("LSRegisterRequestGenerator:
element " + elem);
+ message.addChild(elem);
+ }
+
+ }
}
- r1508 - trunk/perfsonar/src/org/perfsonar/client/commons/requests/lookupService, svnlog, 08/03/2006
Archive powered by MHonArc 2.6.16.