TODO remove gCoreEndpoints.size()

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-access/gcube-geoserver-connector@149219 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
pasquale.vitale 2017-05-29 15:58:35 +00:00
parent 6c2c585958
commit 619412b1f4
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ public class GeoServerConnectorRequestHandler extends RequestHandler {
List<GCoreEndpoint> gCoreEndpoints = client.submit(query);
if (gCoreEndpoints.size() > 1) {
if (gCoreEndpoints.size() > 1) {
//TODO remove gCoreEndpoints.size() and use the first (only) item
System.out.println("******************************* SIZE = " + gCoreEndpoints.size());
GCoreEndpoint gCoreEndpoint = gCoreEndpoints.get(gCoreEndpoints.size() - 1);
return gCoreEndpoint.profile().endpointMap().get("org.gcube.spatial.data.sdi.SDIService").uri().toString();