Package thredds.catalog
Class InvService
- java.lang.Object
-
- thredds.catalog.InvService
-
- Direct Known Subclasses:
ResultService
public class InvService extends Object
A Service is an abstraction for an internet service, such as a data server, FTP, etc.
-
-
Field Summary
Fields Modifier and Type Field Description static InvServicecdmremotestatic InvServicecdmrfeaturestatic InvServicedap4static InvServicefileServerstatic InvServiceh5Servicestatic InvServiceisostatic InvServicelateststatic InvServicencJSONstatic InvServicencmlstatic InvServicencssGridstatic InvServicencssPointstatic InvServiceopendapstatic InvServiceuddcstatic InvServicewcsstatic InvServicewms
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDatasetRoot(InvProperty root)Deprecated.use InvCatalogImplvoidaddProperty(InvProperty p)Add a propertyvoidaddService(InvService service)Add a nested service to a service of type COMPOUND.protected booleancheck(StringBuilder out)Stringdump()booleanequals(Object o)InvServicefindNestedService(String name)StringfindProperty(String name)Get named property.StringgetBase()get the base URL for the serviceList<InvProperty>getDatasetRoots()Deprecated.put roots only in the catalogStringgetDescription()Get the "human readable" description; use ServiceType.toString() if not setStringgetFullName()Deprecated.services should always be at top level.StringgetName()Get the service name: referenced by dataset and access elements.List<InvProperty>getProperties()Get properties for this service.List<InvService>getServices()Get nested services; only if getServiceType() == ServiceType.COMPOUND.ServiceTypegetServiceType()get the Service TypeStringgetSuffix()Get the suffix; may be nullinthashCode()booleanisRelativeBase()See if the service Base is reletiveStringtoString()
-
-
-
Field Detail
-
cdmremote
public static final InvService cdmremote
-
cdmrfeature
public static final InvService cdmrfeature
-
fileServer
public static final InvService fileServer
-
latest
public static final InvService latest
-
ncssGrid
public static final InvService ncssGrid
-
ncssPoint
public static final InvService ncssPoint
-
opendap
public static final InvService opendap
-
dap4
public static final InvService dap4
-
wcs
public static final InvService wcs
-
wms
public static final InvService wms
-
ncml
public static final InvService ncml
-
uddc
public static final InvService uddc
-
iso
public static final InvService iso
-
ncJSON
public static final InvService ncJSON
-
h5Service
public static final InvService h5Service
-
-
Constructor Detail
-
InvService
public InvService(String name, String serviceTypeName, String base, String suffix, String desc)
Constructor.- Parameters:
name- : name to show to the userserviceTypeName- : ServiceTypebase- : base for forming URLsuffix- : suffix for forming URL, may be null.desc- : human readable description, may be null.
-
-
Method Detail
-
getName
public String getName()
Get the service name: referenced by dataset and access elements.- Returns:
- the service name
-
getBase
public String getBase()
get the base URL for the service- Returns:
- the base URL for the service
-
getServiceType
public ServiceType getServiceType()
get the Service Type- Returns:
- the Service Type
-
getSuffix
public String getSuffix()
Get the suffix; may be null- Returns:
- the suffix; may be null
-
getDescription
public String getDescription()
Get the "human readable" description; use ServiceType.toString() if not set- Returns:
- the "human readable" description
-
getProperties
public List<InvProperty> getProperties()
Get properties for this service.- Returns:
- List of type Property. May be empty, but not null.
-
getDatasetRoots
public List<InvProperty> getDatasetRoots()
Deprecated.put roots only in the catalogGet dataset roots.- Returns:
- List of InvProperty. May be empty, may not be null.
-
findProperty
public String findProperty(String name)
Get named property.- Parameters:
name- match this name- Returns:
- String value of Property or null if not exist.
-
findNestedService
public InvService findNestedService(String name)
-
dump
public String dump()
- Returns:
- debugging info
-
addService
public void addService(InvService service)
Add a nested service to a service of type COMPOUND.- Parameters:
service- add this
-
addProperty
public void addProperty(InvProperty p)
Add a property- Parameters:
p- add this
-
addDatasetRoot
public void addDatasetRoot(InvProperty root)
Deprecated.use InvCatalogImplAdd Dataset Root (1.0), key = path, value = location.- Parameters:
root- add this
-
getServices
public List<InvService> getServices()
Get nested services; only if getServiceType() == ServiceType.COMPOUND.- Returns:
- List of type InvService. May be empty, but not null.
-
getFullName
public String getFullName()
Deprecated.services should always be at top level.Get full name for this Service, which has all parent collection names.- Returns:
- name
-
check
protected boolean check(StringBuilder out)
-
isRelativeBase
public boolean isRelativeBase()
See if the service Base is reletive- Returns:
- true if the service Base is reletive
-
-