/** * Construct the standard THREDDS access URI for this dataset access method, * resolve if the URI is relative. * * @return the standard fully resolved THREDDS access URI for this dataset access method, or null if error. */ public URI getStandardUri() { try { InvCatalog cat = dataset.getParentCatalog(); if (cat == null) return new URI(getUnresolvedUrlName()); return cat.resolveUri(getUnresolvedUrlName()); } catch (java.net.URISyntaxException e) { System.err.println("Error parsing URL= " + getUnresolvedUrlName()); return null; } }
/** * Construct the standard THREDDS access URI for this dataset access method, * resolve if the URI is relative. * * @return the standard fully resolved THREDDS access URI for this dataset access method, or null if error. */ public URI getStandardUri() { try { InvCatalog cat = dataset.getParentCatalog(); if (cat == null) return new URI(getUnresolvedUrlName()); return cat.resolveUri(getUnresolvedUrlName()); } catch (java.net.URISyntaxException e) { logger.warn("Error parsing URL= " + getUnresolvedUrlName()); return null; } }
/** * Construct the standard THREDDS access URI for this dataset access method, * resolve if the URI is relative. * * @return the standard fully resolved THREDDS access URI for this dataset access method, or null if error. */ public URI getStandardUri() { try { InvCatalog cat = dataset.getParentCatalog(); if (cat == null) return new URI(getUnresolvedUrlName()); return cat.resolveUri(getUnresolvedUrlName()); } catch (java.net.URISyntaxException e) { logger.warn("Error parsing URL= " + getUnresolvedUrlName()); return null; } }
String urlString = resolveRelativeUrls || datasetEvents ? a.getStandardUrlName() : a.getUnresolvedUrlName(); String fullUrlString = urlString; if (datasetEvents) fullUrlString = "dataset:" + fullUrlString;
String urlString = resolveRelativeUrls || datasetEvents ? a.getStandardUrlName() : a.getUnresolvedUrlName(); String fullUrlString = urlString; if (datasetEvents) fullUrlString = "dataset:" + fullUrlString;
String urlString = resolveRelativeUrls || datasetEvents ? a.getStandardUrlName() : a.getUnresolvedUrlName(); String fullUrlString = urlString; if (datasetEvents) fullUrlString = "dataset:" + fullUrlString;