public class TapServiceParams extends Object
Constructor and Description |
---|
TapServiceParams(String baseParamName,
boolean readCapabilitiesDflt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Parameter<Boolean> |
getAuthParameter()
Note this is also included in
getInterfaceParameters() |
URLParameter |
getBaseParameter()
Returns the parameter that supplies the base TAP service URL.
|
List<Parameter<?>> |
getInterfaceParameters()
Returns the parameters used to select the TAP interface,
including authentication options.
|
List<URLParameter> |
getOtherParameters()
Returns a list of other parameters managed by this object
that specify endpoints for TAP-related services.
|
IOSupplier<TapService> |
getServiceSupplier(Environment env)
Manages acquisition of a TapService instance from the environment
using the parameters managed by this object.
|
Parameter<String> |
getTapInterfaceParameter()
Note this is also included in
getInterfaceParameters() |
public TapServiceParams(String baseParamName, boolean readCapabilitiesDflt)
baseParamName
- name of the parameter that specifies the
base TAP URLreadCapabilitiesDflt
- if true, the default behaviour involves
reading the service's capabilities document;
if false, the default behaviour assumes
standard endpointspublic URLParameter getBaseParameter()
public List<Parameter<?>> getInterfaceParameters()
public List<URLParameter> getOtherParameters()
public Parameter<Boolean> getAuthParameter()
getInterfaceParameters()
public Parameter<String> getTapInterfaceParameter()
getInterfaceParameters()
public IOSupplier<TapService> getServiceSupplier(Environment env) throws TaskException
The idea is that all the environment interaction is done by
this method, and all the service interaction is done when using
the supplier's get
method.
This may not be perfectly true because of difficulties in
arranging dynamic parameter defaulting based on contacting the service.
env
- execution environmentTaskException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.