public AccessControlClient(final URI serviceURI) throws IllegalArgumentException { this(serviceURI, new RegistryClient()); }
protected RegistryClient getRegistryClient() { return new RegistryClient(); }
protected RegistryClient getRegistryClient() { return new RegistryClient(); }
protected RegistryClient getRegistryClient() { return new RegistryClient(); }
protected RegistryClient getRegistryClient() { return new RegistryClient(); }
public VOSDownloadGenerator() { this(new RegistryClient()); }
protected URL getServiceURL(URI serviceID, URI standard, AuthMethod authMethod) { RegistryClient registryClient = new RegistryClient(); return registryClient.getServiceURL(serviceID, standard, authMethod); }
public MultiHostCapabilitiesServlet() { super(); RegistryClient rc = new RegistryClient(); doTransform = rc.isRegistryLookupOverride(); } }
public DataLinkClient() { this.regClient = new RegistryClient(); this.resolver = new DataLinkServiceResolver(); skipSemantics.add("#preview"); skipSemantics.add("http://www.openadc.org/caom2#thumbnail"); skipSemantics.add("http://www.openadc.org/caom2#pkg"); }
private URL getJobListURL() { AuthMethod am = AuthMethod.ANON; if (subject != null) { am = AuthenticationUtil.getAuthMethodFromCredentials(subject); } RegistryClient rc = new RegistryClient(); URL ret = rc.getServiceURL(resourceID, standardID, am, interfaceType); if (ret == null) { throw new RuntimeException("init FAIL, service not found:" + resourceID + " " + standardID + " " + am + " " + interfaceType); } log.info("jobListURL: " + ret); return ret; }
public AdSchemeHandler() { try { RegistryClient rc = new RegistryClient(); AuthMethod am = AuthenticationUtil.getAuthMethod(AuthenticationUtil.getCurrentSubject()); if (am == null) { am = AuthMethod.ANON; } URL serviceURL = rc.getServiceURL(URI.create(DATA_URI), Standards.DATA_10, am); this.baseURL = serviceURL.toExternalForm(); } catch (Throwable t) { log.error("failed to find CADC data service URL", t); throw new RuntimeException("BUG: failed to find CADC data service URL", t); } log.debug("CADC data service URL: " + baseURL); }
final boolean maxDetail) final RegistryClient registryClient = new RegistryClient(); final URL resolverURL = registryClient.getServiceURL( URI.create("ivo://cadc.nrc.ca/resolver"), Standards.RESOLVER_10,
public static CheckResource getAvailabilityCheck() { RegistryClient regClient = new RegistryClient(); LocalAuthority localAuth = new LocalAuthority(); URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString()); URL availURL = regClient.getServiceURL(serviceURI, Standards.VOSI_AVAILABILITY, AuthMethod.ANON); return new CheckWebService(availURL.toExternalForm()); } }
/** * The returned CheckResource is the same as the one from AuthenticatorImpl. * * @return the CheckResource */ public static CheckResource getAvailabilityCheck() { RegistryClient regClient = new RegistryClient(); LocalAuthority localAuth = new LocalAuthority(); URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString()); URL availURL = regClient.getServiceURL(serviceURI, Standards.VOSI_AVAILABILITY, AuthMethod.ANON); return new CheckWebService(availURL.toExternalForm()); } }
RegistryClient rc = new RegistryClient(); URL tempUrl = rc.getServiceURL(resourceIdentifier, standardID, AuthMethod.ANON); if (tempUrl == null)
@Override public URL toURL(URI uri) { if (!SCHEME.equals(uri.getScheme())) { throw new IllegalArgumentException("invalid scheme in " + uri); } try { String path = getPath(uri); // check if authMethod has been set AuthMethod am = this.authMethod; if (am == null) { am = AuthenticationUtil.getAuthMethod(AuthenticationUtil.getCurrentSubject()); } if (am == null) { am = AuthMethod.ANON; } RegistryClient rc = new RegistryClient(); URL serviceURL = rc.getServiceURL(new URI(DATA_URI), Standards.DATA_10, am); URL url = this.toURL(serviceURL, path); log.debug(uri + " --> " + url); return url; } catch (MalformedURLException ex) { throw new RuntimeException("BUG", ex); } catch (URISyntaxException bug) { throw new RuntimeException("BUG - failed to create data web service URI", bug); } }
RegistryClient registryClient = new RegistryClient(); URL baseURL = registryClient.getServiceURL(getServiceURI(vuri), Standards.VOSPACE_SYNC_21, am);
@Override public URL toURL(URI uri) { if (!SCHEME.equals(uri.getScheme())) { throw new IllegalArgumentException("invalid scheme in " + uri); } try { Subject subject = AuthenticationUtil.getCurrentSubject(); AuthMethod authMethod = AuthenticationUtil.getAuthMethodFromCredentials(subject); if (authMethod == null) { authMethod = AuthMethod.ANON; } RegistryClient rc = new RegistryClient(); Capabilities caps = rc.getCapabilities(DATA_RESOURCE_ID); Capability dataCap = caps.findCapability(Standards.DATA_10); Interface ifc = dataCap.findInterface(authMethod); if (ifc == null) { throw new IllegalArgumentException("No interface for auth method " + authMethod); } String baseDataURL = ifc.getAccessURL().getURL().toString(); URL url = new URL(baseDataURL + "/MAST/" + uri.getSchemeSpecificPart()); log.debug(uri + " --> " + url); return url; } catch (MalformedURLException ex) { throw new RuntimeException("BUG", ex); } catch (Throwable t) { String message = "Failed to convert to data URL"; throw new RuntimeException(message, t); } }
RegistryClient regClient = new RegistryClient();