@Override public GetProcedureDetailsUrlResponse getProcedureDetailsUrl(SosTimeseries timeseries) throws Exception { try { LOG.debug("Request -> getProcedureDetailsUrl"); TimeseriesProperties properties = new TimeseriesProperties(timeseries, null, -1, -1); SOSMetadata metadata = ConfigurationContext.getSOSMetadata(timeseries.getServiceUrl()); MetadataHandler metadataHandler = createSosMetadataHandler(metadata); metadataHandler.assembleTimeseriesMetadata(properties); return new GetProcedureDetailsUrlResponse(properties.getMetadataUrl()); } catch (Exception e) { LOG.error("Exception occured on server side.", e); throw e; // last chance to log on server side } }
@Override public SOSMetadataResponse getUpdatedSOSMetadata() { Map<String, SOSMetadata> updateSOSMetadata = ConfigurationContext.updateSOSMetadata(); return new SOSMetadataResponse(updateSOSMetadata); }