public class TapServices extends Object
Modifier and Type | Method and Description |
---|---|
static TapService |
createDefaultTapService(String baseUrl)
Creates a TAP 1.0 service given a base URL string.
|
static TapService |
createDefaultTapService(URL baseUrl)
Creates a TAP 1.0 service given the base URL,
with the endpoints in the default places.
|
static TapService |
createTapService(URL baseUrl,
TapVersion tapVersion)
Creates a TAP service given the base URL,
with the endpoints in the default places and a specified TAP version.
|
static TapService[] |
createTapServices(URL baseUrl,
TapCapabilitiesDoc capsDoc)
Returns an array of TapService instances that are described by
a supplied TAP capabilities document.
|
static TapService |
getRegTapService()
Returns a default service corresponding to a Relational Registry
(RegTAP) service.
|
public static TapService getRegTapService()
The current implementation returns a hardcoded value, the main GAVO registry service. Perhaps it should be pluggable, but the GAVO RegTAP service is expected to be pretty reliable.
public static TapService createDefaultTapService(String baseUrl)
baseUrl
- base TAP URLpublic static TapService createDefaultTapService(URL baseUrl)
baseUrl
- base TAP URLIllegalArgumentException
- in case of a bad URLpublic static TapService createTapService(URL baseUrl, TapVersion tapVersion)
This setup is more or less mandatory for TAP 1.0 services, but TAP 1.1 services may have more freedom to provide different sets of endpoints (capability/interface elements) for different purposes, for instance with different securityMethods.
baseUrl
- base TAP URLtapVersion
- TAP protocol versionpublic static TapService[] createTapServices(URL baseUrl, TapCapabilitiesDoc capsDoc)
baseUrl
- base URL for TAP service (source of capabilities doc)capsDoc
- parsed capabilities documentCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.