|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthredds.catalog.InvService
public class InvService
A Service is an abstraction for an internet service, such as a data server, FTP, etc.
| Constructor Summary | |
|---|---|
InvService(java.lang.String name,
java.lang.String serviceTypeName,
java.lang.String base,
java.lang.String suffix,
java.lang.String desc)
Constructor, use when serviceTypeName alreaddy converted to ServiceType. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
dump()
|
boolean |
equals(java.lang.Object o)
InvServices with same values are equal |
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()
Get dataset roots. |
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()
Override Object.hashCode() to implement equals. |
boolean |
isRelativeBase()
See if the service Base is reletive |
java.lang.String |
toString()
string representation |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 name
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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()
public boolean isRelativeBase()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||