Update ... I get only the first endpoint

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-access/gcube-geoserver-connector@150791 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
pasquale.vitale 2017-07-05 15:09:51 +00:00
parent 7d51b29770
commit 57bdfa9244
1 changed files with 2 additions and 3 deletions

View File

@ -191,9 +191,8 @@ public class GeoServerConnectorRequestHandler extends RequestHandler {
int size = gCoreEndpoints.size();
logger.warn("gCoreEndpoints size = " + size);
if (size > 0) {
//TODO I get the last because when there are 2 endpoint the first is not good! Usually it's only one
GCoreEndpoint gCoreEndpoint = gCoreEndpoints.get(size-1);
if (size > 0) {//I get only the first. Usually it must be only one
GCoreEndpoint gCoreEndpoint = gCoreEndpoints.get(0);
return gCoreEndpoint.profile().endpointMap().get("org.gcube.spatial.data.sdi.SDIService").uri()
.toString();
}