@Override public java.lang.String getUrlPath() { return !useProxy ? super.getUrlPath() : proxy.getUrlPath(); }
@Override public java.lang.String getUrlPath() { return !useProxy ? super.getUrlPath() : proxy.getUrlPath(); }
@Override public java.lang.String getUrlPath() { return !useProxy ? super.getUrlPath() : proxy.getUrlPath(); }
public java.lang.String getUrlPath() { return proxy.getUrlPath(); }
public java.lang.String getUrlPath() { return proxy.getUrlPath(); }
public java.lang.String getUrlPath() { return proxy.getUrlPath(); }
if (dataset.getUrlPath() != null) { logger.debug("nameDatasetRegExp(): try naming on urlPath <{}>", dataset.getUrlPath()); matcher = this.regExpPattern.matcher( dataset.getUrlPath() ); isMatch = matcher.find(); } else { logger.debug("nameDatasetRegExp(): Neither URL <" + dataset.getUrlPath() + "> or name <" + dataset.getName() + "> matched pattern <" + this.matchPattern + "> ."); return false;
if (dataset.getUrlPath() != null) { logger.debug("nameDatasetRegExp(): try naming on urlPath <{}>", dataset.getUrlPath()); matcher = this.regExpPattern.matcher( dataset.getUrlPath() ); isMatch = matcher.find(); } else { logger.debug("nameDatasetRegExp(): Neither URL <" + dataset.getUrlPath() + "> or name <" + dataset.getName() + "> matched pattern <" + this.matchPattern + "> ."); return false;
if (dataset.getUrlPath() != null) { logger.debug("nameDatasetRegExp(): try naming on urlPath <{}>", dataset.getUrlPath()); matcher = this.regExpPattern.matcher( dataset.getUrlPath() ); isMatch = matcher.find(); } else { logger.debug("nameDatasetRegExp(): Neither URL <" + dataset.getUrlPath() + "> or name <" + dataset.getName() + "> matched pattern <" + this.matchPattern + "> ."); return false;
/** Name the datasets in the given dataset hierarchy using this * DatasetSource's list of datasetNamers. */ private void nameDatasetTree( InvDatasetImpl dataset) { // If dataset does not have a name, try naming it with dsNamers. // @todo Rethink naming of directories (look at how DatasetFilter deals with collection vs atomic datasets). if ( dataset.getName().equals("") || ! dataset.hasAccess()) { logger.debug( "nameDatasetTree(): naming dataset ({})...", dataset.getUrlPath()); DatasetNamer dsN = null; for ( int i = 0; i < this.datasetNamerList.size(); i++) { dsN = (DatasetNamer) this.datasetNamerList.get( i); if ( dsN.nameDataset( dataset)) { logger.debug( "nameDatasetTree(): ... used namer ({})", dsN.getName()); break; } } } // Try to name any child datasets. InvDatasetImpl curDs = null; for ( int j = 0; j < dataset.getDatasets().size(); j++) { curDs = (InvDatasetImpl) dataset.getDatasets().get( j); logger.debug( "nameDatasetTree(): recurse to name child dataset ({})", curDs.getUrlPath()); this.nameDatasetTree( curDs); } return; }
/** Name the datasets in the given dataset hierarchy using this * DatasetSource's list of datasetNamers. */ private void nameDatasetTree( InvDatasetImpl dataset) { // If dataset does not have a name, try naming it with dsNamers. // @todo Rethink naming of directories (look at how DatasetFilter deals with collection vs atomic datasets). if ( dataset.getName().equals("") || ! dataset.hasAccess()) { logger.debug( "nameDatasetTree(): naming dataset ({})...", dataset.getUrlPath()); DatasetNamer dsN = null; for ( int i = 0; i < this.datasetNamerList.size(); i++) { dsN = (DatasetNamer) this.datasetNamerList.get( i); if ( dsN.nameDataset( dataset)) { logger.debug( "nameDatasetTree(): ... used namer ({})", dsN.getName()); break; } } } // Try to name any child datasets. InvDatasetImpl curDs = null; for ( int j = 0; j < dataset.getDatasets().size(); j++) { curDs = (InvDatasetImpl) dataset.getDatasets().get( j); logger.debug( "nameDatasetTree(): recurse to name child dataset ({})", curDs.getUrlPath()); this.nameDatasetTree( curDs); } return; }
/** Name the datasets in the given dataset hierarchy using this * DatasetSource's list of datasetNamers. */ private void nameDatasetTree( InvDatasetImpl dataset) { // If dataset does not have a name, try naming it with dsNamers. // @todo Rethink naming of directories (look at how DatasetFilter deals with collection vs atomic datasets). if ( dataset.getName().equals("") || ! dataset.hasAccess()) { logger.debug( "nameDatasetTree(): naming dataset ({})...", dataset.getUrlPath()); DatasetNamer dsN = null; for ( int i = 0; i < this.datasetNamerList.size(); i++) { dsN = (DatasetNamer) this.datasetNamerList.get( i); if ( dsN.nameDataset( dataset)) { logger.debug( "nameDatasetTree(): ... used namer ({})", dsN.getName()); break; } } } // Try to name any child datasets. InvDatasetImpl curDs = null; for ( int j = 0; j < dataset.getDatasets().size(); j++) { curDs = (InvDatasetImpl) dataset.getDatasets().get( j); logger.debug( "nameDatasetTree(): recurse to name child dataset ({})", curDs.getUrlPath()); this.nameDatasetTree( curDs); } return; }
if ( ! ( curDs.hasAccess()) || curDs.getUrlPath().endsWith( "latest.xml"))
if ( ! ( curDs.hasAccess()) || curDs.getUrlPath().endsWith( "latest.xml"))
isMatch = matcher.find(); } else if (this.getMatchPatternTarget().equals("urlPath")) { java.util.regex.Matcher matcher = this.regExpPattern.matcher(((InvDatasetImpl) dataset).getUrlPath()); isMatch = matcher.find(); } else {
String urlPath = ( (InvDatasetImpl) dataset ).getUrlPath(); if ( urlPath != null ) resultDs.setUrlPath( urlPath );
String urlPath = ( (InvDatasetImpl) dataset ).getUrlPath(); if ( urlPath != null ) resultDs.setUrlPath( urlPath );
String urlPath = ( (InvDatasetImpl) dataset ).getUrlPath(); if ( urlPath != null ) resultDs.setUrlPath( urlPath );
if (ds.getID() != null) dsElem.setAttribute("ID", ds.getID()); if (ds.getUrlPath() != null) dsElem.setAttribute("urlPath", ds.getUrlPath()); if (ds.getRestrictAccess() != null) dsElem.setAttribute("restrictAccess", ds.getRestrictAccess());
if (ds.getID() != null) dsElem.setAttribute("ID", ds.getID()); if (ds.getUrlPath() != null) dsElem.setAttribute("urlPath", ds.getUrlPath()); if (ds.getRestrictAccess() != null) dsElem.setAttribute("restrictAccess", ds.getRestrictAccess());