updated comments

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/uri-resolver-manager@132010 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-09-28 16:42:23 +00:00
parent 3beb5a9bd2
commit e9e4cb38a5
1 changed files with 2 additions and 3 deletions

View File

@ -205,9 +205,7 @@ public class UriResolverManager {
} }
String baseURI = serviceAccessPoint.getServiceUrl(); String baseURI = serviceAccessPoint.getServiceUrl();
releaseReader(); releaseReader();
String params = UrlEncoderUtil.encodeQuery(parameters); String params = UrlEncoderUtil.encodeQuery(parameters);
link = baseURI+"?"+params; link = baseURI+"?"+params;
logger.info("Created HTTP URI request (link): "+link); logger.info("Created HTTP URI request (link): "+link);
@ -219,7 +217,7 @@ public class UriResolverManager {
link = shortener.shorten(link); link = shortener.shorten(link);
logger.info("Shorted link is: "+link); logger.info("Shorted link is: "+link);
}catch(Exception e){ }catch(Exception e){
logger.warn("An error occurred on shortener the link ",e); logger.warn("An error occurred during link shortening: ",e);
} }
} }
} catch (IllegalArgumentException e){ } catch (IllegalArgumentException e){
@ -229,6 +227,7 @@ public class UriResolverManager {
logger.error("Uri Resolver Exception: ", e); logger.error("Uri Resolver Exception: ", e);
throw new UriResolverMapException("Uri Resolver error: " +e.getMessage()); throw new UriResolverMapException("Uri Resolver error: " +e.getMessage());
} }
return link; return link;
} }