public class LocalFileCatalog extends java.lang.Object implements WcsCatalog
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NamespaceName |
static java.lang.String |
NamespacePrefix |
static org.jdom.Namespace |
NS |
Constructor and Description |
---|
LocalFileCatalog() |
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 id)
Queries the catalog for a CoverageDescription
with an ID (wcs:Identifier) equal to the passed String.
|
org.jdom.Element |
getCoverageDescriptionElement(java.lang.String id)
Queries the catalog for a CoverageDescription
with an ID (wcs:Identifier) equal to the passed String.
|
java.util.List<CoverageDescription> |
getCoverageDescriptionElements() |
org.jdom.Element |
getCoverageSummaryElement(java.lang.String id)
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.
|
EOCoverageDescription |
getEOCoverageDescription(java.lang.String id) |
java.util.List<EOCoverageDescription> |
getEoCoverageDescriptionElements() |
java.util.Collection<org.jdom.Element> |
getEOCoverageSummaryElements() |
java.util.List<EODatasetSeries> |
getEoDataSeriesElements() |
EODatasetSeries |
getEODatasetSeries(java.lang.String id) |
long |
getLastModified()
This should provide the last modified time of the catalog.
|
boolean |
hasCoverage(java.lang.String id)
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 persistentContentPath,
java.lang.String serviceContextPath)
Initializes the catalog.
|
boolean |
matches(java.lang.String coverageId) |
void |
setCoverageDescriptionElements(java.util.concurrent.ConcurrentHashMap<java.lang.String,CoverageDescription> covs) |
void |
setEoCoverageDescriptionElements(java.util.concurrent.ConcurrentHashMap<java.lang.String,EOCoverageDescription> ecovs) |
void |
setEoDataSeriesElements(java.util.concurrent.ConcurrentHashMap<java.lang.String,EODatasetSeries> dataSeries) |
void |
update() |
public static final java.lang.String NamespaceName
public static final java.lang.String NamespacePrefix
public static final org.jdom.Namespace NS
public void init(org.jdom.Element config, java.lang.String persistentContentPath, java.lang.String serviceContextPath) throws java.lang.Exception
WcsCatalog
init
in interface WcsCatalog
config
- persistentContentPath
- The directory into which the catalog may choose to write persistent content,
intermediate files, etc.serviceContextPath
- The service context, should be /context/servletjava.lang.Exception
public boolean hasCoverage(java.lang.String id)
WcsCatalog
hasCoverage
in interface WcsCatalog
id
- The Coverage ID (wcs:Identifier)public boolean hasEoCoverage(java.lang.String id)
hasEoCoverage
in interface WcsCatalog
public org.jdom.Element getCoverageDescriptionElement(java.lang.String id) throws WcsException
WcsCatalog
getCoverageDescriptionElement
in interface WcsCatalog
id
- The Coverage ID (wcs:Identifier)WcsException
- When the bad things happen.public CoverageDescription getCoverageDescription(java.lang.String id) throws WcsException
WcsCatalog
getCoverageDescription
in interface WcsCatalog
id
- The Coverage ID (wcs:Identifier)WcsException
- When the bad things happen.public org.jdom.Element getCoverageSummaryElement(java.lang.String id) throws 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
id
- The Coverage ID (wcs:Identifier)WcsException
- When the bad things happen.public java.util.Collection<org.jdom.Element> getCoverageSummaryElements() throws 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
WcsException
- When the bad things happen.public java.util.Collection<org.jdom.Element> getEOCoverageSummaryElements() throws WcsException
WcsException
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 long getLastModified()
WcsCatalog
getLastModified
in interface WcsCatalog
public void destroy()
WcsCatalog
destroy
in interface WcsCatalog
public void update()
update
in interface WcsCatalog
public EOCoverageDescription getEOCoverageDescription(java.lang.String id)
getEOCoverageDescription
in interface WcsCatalog
public EODatasetSeries getEODatasetSeries(java.lang.String id)
getEODatasetSeries
in interface WcsCatalog
public java.util.List<CoverageDescription> getCoverageDescriptionElements()
public void setCoverageDescriptionElements(java.util.concurrent.ConcurrentHashMap<java.lang.String,CoverageDescription> covs)
public java.util.List<EOCoverageDescription> getEoCoverageDescriptionElements()
public void setEoCoverageDescriptionElements(java.util.concurrent.ConcurrentHashMap<java.lang.String,EOCoverageDescription> ecovs)
public java.util.List<EODatasetSeries> getEoDataSeriesElements()
public void setEoDataSeriesElements(java.util.concurrent.ConcurrentHashMap<java.lang.String,EODatasetSeries> dataSeries)
public java.lang.String getDapDatsetUrl(java.lang.String coverageID)
WcsCatalog
getDapDatsetUrl
in interface WcsCatalog
public boolean matches(java.lang.String coverageId)
matches
in interface WcsCatalog