changed generic resource reader
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/uri-resolver-manager@101166 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6d1e132ce0
commit
52c4462920
|
@ -103,9 +103,13 @@ public class UriResolverMapReader {
|
|||
for (String at : appTypes) {
|
||||
logger.info("Application Type "+at);
|
||||
// currValue = helper.evaluate("/Resource/Profile/Body/EndPoint[Scope='"+scope.toString()+"']/Scope/text()");
|
||||
currValue = helper.evaluate("/Resource/Profile/Body/access_point[application_type='"+at+"']/resource/text()");
|
||||
applicationTypes.put(at, currValue.get(0));
|
||||
logger.info("Stored: "+at +" -> Resource: "+ currValue.get(0));
|
||||
List<String> resources = helper.evaluate("/Resource/Profile/Body/access_point[application_type='"+at+"']/resource/text()");
|
||||
|
||||
if(resources!=null && resources.size()>0){
|
||||
applicationTypes.put(at, resources.get(0));
|
||||
logger.info("Stored: "+at +" -> Resource: "+ currValue.get(0));
|
||||
}else
|
||||
logger.warn("Skipping Type "+at+" generic resource not found!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class UriResolverTest {
|
|||
}
|
||||
}
|
||||
|
||||
// @Test
|
||||
@Test
|
||||
public void testSMP() {
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue