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:
parent
7d51b29770
commit
57bdfa9244
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue