|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.crawler.DDXRetriever
public class DDXRetriever
Use this with crawlers to manage a collection of DDX responses and the URLs that reference them. This class can cache just the URLs, or both the URLs and the matching responses. It can perform conditional gets as well, using postgres (via ResponseCachePostgres) as a simple HTTP/1.1 cache.
Constructor Summary | |
---|---|
DDXRetriever(boolean readOnly,
java.lang.String namePrefix)
|
|
DDXRetriever(java.lang.String cacheName)
|
Method Summary | |
---|---|
void |
cacheDDXURL(java.lang.String ddxUrl)
|
java.lang.String |
getCachedDDXDoc(java.lang.String DDXURL)
|
long |
getCachedDDXLMT(java.lang.String DDXURL)
|
java.util.Enumeration<java.lang.String> |
getCachedDDXURLs()
|
java.lang.String |
getDDXDoc(java.lang.String DDXURL)
Given a URL to a DDX, get the DDX document. |
boolean |
isWellFormedDDX(java.lang.String ddxString)
Simple method to test if the DDX will parse. |
static void |
main(java.lang.String[] args)
This 'main' has many conflicting features/options. |
void |
saveDDXCache()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DDXRetriever(java.lang.String cacheName) throws java.lang.Exception
java.lang.Exception
public DDXRetriever(boolean readOnly, java.lang.String namePrefix) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- public boolean isWellFormedDDX(java.lang.String ddxString)
ddxString
- The DDX to test
public java.lang.String getDDXDoc(java.lang.String DDXURL) throws java.lang.Exception
DDXURL
- Get the DDX referenced by this URL
java.lang.Exception
getCache()
public void cacheDDXURL(java.lang.String ddxUrl) throws java.lang.Exception
java.lang.Exception
public java.util.Enumeration<java.lang.String> getCachedDDXURLs()
public java.lang.String getCachedDDXDoc(java.lang.String DDXURL) throws java.lang.Exception
java.lang.Exception
public long getCachedDDXLMT(java.lang.String DDXURL) throws java.lang.Exception
java.lang.Exception
public void saveDDXCache() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |