Maps - DEMO - richiesta inserimento log
Se possibile, si richiede di inserire (solo per l'ambiente di DEMO)
nel metodo getFeatures della classe it.siag.maps.core.authoring.LayersService
una riga di log per misurare i tempi di risposta delle chiamate al geoserver.
public JsonObject getFeatures(String url, String username, String password, String getFeatureXml) throws MapsException {
if (getFeatureXml == null || getFeatureXml.isEmpty())
return null;
// get response and errors as json (otherwise xml is returned)
url += "&outputFormat=application/json&exceptions=application/json";
logger.debug("Calling features info at " + url + " with body " + getFeatureXml);
Entity<String> entity = Entity.entity(getFeatureXml, MediaType.APPLICATION_XML);
long t1 = System.currentTimeMillis();
Response invoke = new WebResourceBuilder().target(url).credentials(username, password).buildPost(entity).invoke();
long t2 = System.currentTimeMillis();
---------------> logger.info("invoke service - " + url + " - duration = " + ((t2- t1)/1000.0000) + " sec "); <---------------
[...]