public class DynamicServiceCatalog extends java.lang.Object implements WcsCatalog
Constructor and Description |
---|
DynamicServiceCatalog() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Always called when the service is shutting down so that the catalog can perform
sensible exiting activities.
|
CoverageDescription |
getCoverageDescription(java.lang.String coverageId)
TODO In this method should be set up to utilize a cached instance of the DynamicCoverageDescription object as the getDMR() method does for the DMR document.
|
org.jdom.Element |
getCoverageDescriptionElement(java.lang.String coverageId)
Queries the catalog for a CoverageDescription
with an ID (wcs:Identifier) equal to the passed String.
|
org.jdom.Element |
getCoverageSummaryElement(java.lang.String coverageId)
Queries the catalog for a wcs:CoverageOfferingBrief
with an ID (wcs:Identifier) equal to the passed String.
|
java.util.Collection<org.jdom.Element> |
getCoverageSummaryElements()
Queries the catalog and returns all wcs:CoverageOfferingBrief elements
found therin.
|
java.lang.String |
getDapDatsetUrl(java.lang.String coverageId)
Returns the base data access URL for this coverage.
|
java.util.Collection<org.jdom.Element> |
getDatasetSeriesSummaryElements()
Queries the catalog and returns all wcs:CoverageOfferingBrief elements
found therin.
|
SimpleSrs |
getDefaultSrs(java.lang.String coverageId) |
EOCoverageDescription |
getEOCoverageDescription(java.lang.String id) |
EODatasetSeries |
getEODatasetSeries(java.lang.String id) |
long |
getLastModified()
This should provide the last modified time of the catalog.
|
DynamicService |
getLongestMatchingDynamicService(java.lang.String coverageId)
Compares the passed coverageID with the collection Dynamix services and returns the one,
if any, with the lingest matching name.
|
boolean |
hasCoverage(java.lang.String coverageId)
Queries the catalog to determine if it contains information on a Coverage
with an ID (wcs:Identifier) equal to the passed String
|
boolean |
hasEoCoverage(java.lang.String id) |
void |
init(org.jdom.Element config,
java.lang.String cacheDir,
java.lang.String serviceContextPath)
|
boolean |
matches(java.lang.String coverageId) |
void |
update() |
public void init(org.jdom.Element config, java.lang.String cacheDir, java.lang.String serviceContextPath) throws java.lang.Exception
init
in interface WcsCatalog
config
- A URL the when de-referenced will return a document that contains
a WcsCatalog configuration element as a child of the root element.cacheDir
- The directory into which the catalog may choose to write persistent content,
intermediate files, etc.serviceContextPath
- Service context.java.lang.Exception
public boolean hasCoverage(java.lang.String coverageId) throws java.lang.InterruptedException
WcsCatalog
hasCoverage
in interface WcsCatalog
coverageId
- The Coverage ID (wcs:Identifier)java.lang.InterruptedException
public CoverageDescription getCoverageDescription(java.lang.String coverageId) throws java.lang.InterruptedException, WcsException
getCoverageDescription
in interface WcsCatalog
coverageId
- The Coverage ID (wcs:Identifier)java.lang.InterruptedException
WcsException
public org.jdom.Element getCoverageDescriptionElement(java.lang.String coverageId) throws java.lang.InterruptedException, WcsException
WcsCatalog
getCoverageDescriptionElement
in interface WcsCatalog
coverageId
- The Coverage ID (wcs:Identifier)java.lang.InterruptedException
WcsException
- When the bad things happen.public org.jdom.Element getCoverageSummaryElement(java.lang.String coverageId) throws java.lang.InterruptedException, WcsException
WcsCatalog
Since the wcs:CoverageOfferingBrief is derivable from the conent of wcs:CoverageDecription it may be that we want to migrate this method out of the interface.
getCoverageSummaryElement
in interface WcsCatalog
coverageId
- The Coverage ID (wcs:Identifier)java.lang.InterruptedException
WcsException
- When the bad things happen.public java.util.Collection<org.jdom.Element> getCoverageSummaryElements() throws java.lang.InterruptedException, WcsException
WcsCatalog
Since the wcs:CoverageOfferingBrief is derivable from the conent of wcs:CoverageDecription it may be that we want to migrate this method out of the interface.
getCoverageSummaryElements
in interface WcsCatalog
java.lang.InterruptedException
WcsException
- When the bad things happen.public java.util.Collection<org.jdom.Element> getDatasetSeriesSummaryElements() throws java.lang.InterruptedException, WcsException
WcsCatalog
Since the wcs:CoverageOfferingBrief is derivable from the conent of wcs:CoverageDecription it may be that we want to migrate this method out of the interface.
getDatasetSeriesSummaryElements
in interface WcsCatalog
java.lang.InterruptedException
WcsException
- When the bad things happen.public DynamicService getLongestMatchingDynamicService(java.lang.String coverageId)
coverageId
- public java.lang.String getDapDatsetUrl(java.lang.String coverageId) throws java.lang.InterruptedException
WcsCatalog
getDapDatsetUrl
in interface WcsCatalog
java.lang.InterruptedException
public long getLastModified()
WcsCatalog
getLastModified
in interface WcsCatalog
public void destroy()
WcsCatalog
destroy
in interface WcsCatalog
public void update() throws java.lang.Exception
update
in interface WcsCatalog
java.lang.Exception
public EOCoverageDescription getEOCoverageDescription(java.lang.String id) throws WcsException
getEOCoverageDescription
in interface WcsCatalog
WcsException
public EODatasetSeries getEODatasetSeries(java.lang.String id) throws WcsException
getEODatasetSeries
in interface WcsCatalog
WcsException
public boolean hasEoCoverage(java.lang.String id)
hasEoCoverage
in interface WcsCatalog
public SimpleSrs getDefaultSrs(java.lang.String coverageId)
public boolean matches(java.lang.String coverageId)
matches
in interface WcsCatalog