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 InvService
cdmremote
static InvService
cdmrfeature
static InvService
dap4
static InvService
fileServer
static InvService
h5Service
static InvService
iso
static InvService
latest
static InvService
ncJSON
static InvService
ncml
static InvService
ncssGrid
static InvService
ncssPoint
static InvService
opendap
static InvService
uddc
static InvService
wcs
static InvService
wms
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addDatasetRoot(InvProperty root)
Deprecated.use InvCatalogImplvoid
addProperty(InvProperty p)
Add a propertyvoid
addService(InvService service)
Add a nested service to a service of type COMPOUND.protected boolean
check(StringBuilder out)
String
dump()
boolean
equals(Object o)
InvService
findNestedService(String name)
String
findProperty(String name)
Get named property.String
getBase()
get the base URL for the serviceList<InvProperty>
getDatasetRoots()
Deprecated.put roots only in the catalogString
getDescription()
Get the "human readable" description; use ServiceType.toString() if not setString
getFullName()
Deprecated.services should always be at top level.String
getName()
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.ServiceType
getServiceType()
get the Service TypeString
getSuffix()
Get the suffix; may be nullint
hashCode()
boolean
isRelativeBase()
See if the service Base is relativeString
toString()
-
-
-
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 relative- Returns:
- true if the service Base is relative
-
-