|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.crawler.ThreddsCatalogUtil
public class ThreddsCatalogUtil
Nested Class Summary | |
---|---|
static class |
ThreddsCatalogUtil.SERVICE
|
class |
ThreddsCatalogUtil.ThreddsCrawlerEnumeration
Implements a modified depth-first traversal of a thredds catalog. |
Constructor Summary | |
---|---|
ThreddsCatalogUtil(java.lang.String namePrefix,
boolean readOnly)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getCachedCatalog(java.lang.String url)
Return the THREDDS catalog associated with the given URL from the local cache. |
java.util.Enumeration<java.lang.String> |
getCachedCatalogEnumeration()
Get access to all of the THREDDS Catalogs in the cache. |
ThreddsCatalogUtil.ThreddsCrawlerEnumeration |
getCatalogEnumeration()
Resume an interrupted crawl. |
ThreddsCatalogUtil.ThreddsCrawlerEnumeration |
getCatalogEnumeration(java.lang.String topCatalog)
Crawl a thredds catalog. |
java.util.Vector<java.lang.String> |
getCatalogRefURLs(java.lang.String catalogUrlString)
Returns all of the THREDDS catalog URLs contained in the THREDDS catalog located at the passed URL. |
java.util.Vector<java.lang.String> |
getDDXUrls(java.lang.String catalogUrlString)
Return all of the DDX urls to data sources referenced by the given thredds catalog. |
void |
saveCatalogCache()
Save the 'visited' cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreddsCatalogUtil(java.lang.String namePrefix, boolean readOnly) throws java.lang.Exception
writeToCache
- True if caching should be usednamePrefix
- The name of the cache filesreadFromCache
- Arrange for the TCU class to read Thredds catalogs
from the postgres cache.
java.lang.Exception
Method Detail |
---|
public java.util.Vector<java.lang.String> getDDXUrls(java.lang.String catalogUrlString) throws java.lang.Exception
catalogUrlString
- The THREDDS catalog to access
java.lang.Exception
public java.util.Vector<java.lang.String> getCatalogRefURLs(java.lang.String catalogUrlString) throws java.lang.Exception
catalogUrlString
- The URL from where the catalog was retrieved.
catalogUrlString
is 'bad' (e.g., the
server returns a 404 response), then the Vectorjava.lang.Exception
public ThreddsCatalogUtil.ThreddsCrawlerEnumeration getCatalogEnumeration(java.lang.String topCatalog) throws java.lang.Exception
topCatalog
- The THREDDS catalog that will serve as the root node
java.lang.Exception
- Thrown if the cache cannot be configuredpublic ThreddsCatalogUtil.ThreddsCrawlerEnumeration getCatalogEnumeration() throws java.lang.Exception
java.lang.Exception
- Thrown if the cache cannot be configuredpublic java.util.Enumeration<java.lang.String> getCachedCatalogEnumeration()
public java.lang.String getCachedCatalog(java.lang.String url) throws java.lang.Exception
url
- Find this THREDDS catalog
java.lang.Exception
public void saveCatalogCache() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |