public class InvService
extends java.lang.Object
Modifier and Type | Field and 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 |
ncss |
static InvService |
opendap |
static InvService |
uddc |
static InvService |
wcs |
static InvService |
wms |
Constructor and Description |
---|
InvService(java.lang.String name,
java.lang.String serviceTypeName,
java.lang.String base,
java.lang.String suffix,
java.lang.String desc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDatasetRoot(InvProperty root)
Deprecated.
use InvCatalogImpl
|
void |
addProperty(InvProperty p)
Add a property
|
void |
addService(InvService service)
Add a nested service to a service of type COMPOUND.
|
protected boolean |
check(java.lang.StringBuilder out) |
java.lang.String |
dump() |
boolean |
equals(java.lang.Object o) |
InvService |
findNestedService(java.lang.String name) |
java.lang.String |
findProperty(java.lang.String name)
Get named property.
|
java.lang.String |
getBase()
get the base URL for the service
|
java.util.List<InvProperty> |
getDatasetRoots()
Deprecated.
put roots only in the catalog
|
java.lang.String |
getDescription()
Get the "human readable" description; use ServiceType.toString() if not set
|
java.lang.String |
getFullName()
Deprecated.
services should always be at top level.
|
java.lang.String |
getName()
Get the service name: referenced by dataset and access elements.
|
java.util.List<InvProperty> |
getProperties()
Get properties for this service.
|
java.util.List<InvService> |
getServices()
Get nested services; only if getServiceType() == ServiceType.COMPOUND.
|
ServiceType |
getServiceType()
get the Service Type
|
java.lang.String |
getSuffix()
Get the suffix; may be null
|
int |
hashCode() |
boolean |
isRelativeBase()
See if the service Base is reletive
|
java.lang.String |
toString() |
public static final InvService cdmremote
public static final InvService cdmrfeature
public static final InvService fileServer
public static final InvService latest
public static final InvService ncss
public static final InvService opendap
public static final InvService dap4
public static final InvService wcs
public static final InvService wms
public static final InvService ncml
public static final InvService uddc
public static final InvService iso
public static final InvService ncJSON
public static final InvService h5Service
public InvService(java.lang.String name, java.lang.String serviceTypeName, java.lang.String base, java.lang.String suffix, java.lang.String desc)
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.public java.lang.String getName()
public java.lang.String getBase()
public ServiceType getServiceType()
public java.lang.String getSuffix()
public java.lang.String getDescription()
public java.util.List<InvProperty> getProperties()
public java.util.List<InvProperty> getDatasetRoots()
public java.lang.String findProperty(java.lang.String name)
name
- match this namepublic InvService findNestedService(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String dump()
public void addService(InvService service)
service
- add thispublic void addProperty(InvProperty p)
p
- add thispublic void addDatasetRoot(InvProperty root)
root
- add thispublic java.util.List<InvService> getServices()
public java.lang.String getFullName()
protected boolean check(java.lang.StringBuilder out)
public boolean isRelativeBase()