changed log trace to info
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/uri-resolver-manager@101164 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a8dcb24d1d
commit
6d1e132ce0
|
@ -97,15 +97,15 @@ public class UriResolverMapReader {
|
|||
List<String> currValue = null;
|
||||
currValue = helper.evaluate("/Resource/Profile/Body/access_point/application_type/text()");
|
||||
if (currValue != null && currValue.size() > 0) {
|
||||
logger.trace("Application Types are: "+currValue.size());
|
||||
logger.info("Application Types are: "+currValue.size());
|
||||
applicationTypes = new HashMap<String, String>(currValue.size());
|
||||
List<String> appTypes = currValue;
|
||||
for (String at : appTypes) {
|
||||
logger.trace("Application Type "+at);
|
||||
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.trace("Stored: "+at +" -> Resource: "+ currValue.get(0));
|
||||
logger.info("Stored: "+at +" -> Resource: "+ currValue.get(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public class UriResolverTest {
|
|||
ScopeProvider.instance.set("/gcube/devsec/devVRE");
|
||||
UriResolverManager resolver = new UriResolverManager("GIS");
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
params.put("gis-UUID", "eb1a1b63-f324-47ee-9522-b8f5803e19ec");
|
||||
params.put("gis-UUID", "5ac49f44-999f-4efe-a32b-af71da2b39ac");
|
||||
params.put("scope", "/gcube/devsec/devVRE");
|
||||
String shortLink = resolver.getLink(params, true);
|
||||
System.out.println(shortLink); //true, link is shorted otherwise none
|
||||
|
@ -38,7 +38,7 @@ public class UriResolverTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
// @Test
|
||||
public void testSMP() {
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue