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();
|
int size = gCoreEndpoints.size();
|
||||||
logger.warn("gCoreEndpoints size = " + size);
|
logger.warn("gCoreEndpoints size = " + size);
|
||||||
|
|
||||||
if (size > 0) {
|
if (size > 0) {//I get only the first. Usually it must be only one
|
||||||
//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(0);
|
||||||
GCoreEndpoint gCoreEndpoint = gCoreEndpoints.get(size-1);
|
|
||||||
return gCoreEndpoint.profile().endpointMap().get("org.gcube.spatial.data.sdi.SDIService").uri()
|
return gCoreEndpoint.profile().endpointMap().get("org.gcube.spatial.data.sdi.SDIService").uri()
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue