updadte cahcing mechanism of RSG.WS endpoint

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@100812 82a268e6-3cf1-43bd-a215-b396298e98cf
master
Massimiliano Assante 10 years ago
parent 95bdba3053
commit 5f533fdd2f

@ -152,7 +152,7 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
/**
*
*/
public static final String RSG_WS_ADDRESS = "RSG_WS_ADDRESS";
public static final String RSG_WS_ADDRESS = "RSG-WS-ENDPOINT";
private static final String REPORT_IMAGES_FOLDER = "Report Images";
@ -706,13 +706,13 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
}
private RSGAccessPoint getRSGWSAddress() {
RSGAccessPoint rsgAp = (RSGAccessPoint) getASLSession().getAttribute(RSG_WS_ADDRESS);
RSGAccessPoint rsgAp = (RSGAccessPoint) this.getThreadLocalRequest().getSession().getAttribute(RSG_WS_ADDRESS);
_log.trace("getRSGWSAddress: " + rsgAp.getRestUrl());
return rsgAp;
}
private void setRSGWSAddress(RSGAccessPoint rsgAp) {
getASLSession().setAttribute(RSG_WS_ADDRESS, rsgAp);
this.getThreadLocalRequest().getSession().setAttribute(RSG_WS_ADDRESS, rsgAp);
_log.trace("setting RSG WS address to " + rsgAp.getRestUrl());
}
/**