protocol errors and defaults

This commit is contained in:
Dave Fisher 2024-11-22 13:28:36 -08:00
parent 3ed2af6d1a
commit 1572190c6a

View File

@ -209,19 +209,15 @@ public class NBIO implements NBPathsAPI.Facets {
this.resolver = this.resolver != null ? this.resolver.inNBIOCache() : URIResolvers.inNBIOCache();
}
break;
case "http":
case "https":
this.resolver = this.resolver != null ? this.resolver.inURLs() : URIResolvers.inURLs();
break;
case "all":
if (useNBIOCache) {
this.resolver = URIResolvers.inFS().inCP().inNBIOCache();
} else {
this.resolver = URIResolvers.inFS().inCP().inURLs();
}
break;
return allContent();
default:
throw new BasicError("NBIO Error: the '"+protocol+"' protocol is not available.");
}
}
if ( this.resolver == null ) {
return allContent();
}
return this;
}