just replacing some comments
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@174820 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
04e0d90e09
commit
80bd719117
|
@ -70,16 +70,16 @@ public class AnalyticsGetResolver {
|
|||
}
|
||||
|
||||
//READ THE DATAMINER URL PORTLET FROM APPLICATION PROFRILE IN THE SCOPE fullScope
|
||||
String dataminerEndPoint = reader.getApplicationProfile().getUrl();
|
||||
String analyticsExecutorEndPoint = reader.getApplicationProfile().getUrl();
|
||||
|
||||
String queryString = "";
|
||||
if(req.getQueryString()!=null && !req.getQueryString().isEmpty()){
|
||||
queryString+=req.getQueryString();
|
||||
}
|
||||
|
||||
String dataMinerResolveURL = String.format("%s?%s", dataminerEndPoint, queryString);
|
||||
logger.info("Resolving the request as DataMinerURL: "+dataMinerResolveURL);
|
||||
return Response.seeOther(new URI(dataMinerResolveURL)).build();
|
||||
String analExecutorURL = String.format("%s?%s", analyticsExecutorEndPoint, queryString);
|
||||
logger.info("Resolving the request with the "+ANALYTICS_EXECUTOR_PORTLET_NAME+" URL: "+analExecutorURL);
|
||||
return Response.seeOther(new URI(analExecutorURL)).build();
|
||||
|
||||
}catch (ExecutionException e) {
|
||||
logger.error("The input VRE Name "+vreName+" not found", e);
|
||||
|
|
Loading…
Reference in New Issue